Lemma is an Electromagnetics API
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. from setuptools import setup, Extension, find_packages
  2. from setuptools.command.install import install
  3. from setuptools.dist import Distribution
  4. import sys
  5. if sys.version_info < (3,0):
  6. sys.exit('Sorry, Python < 3.0 is not supported')
  7. class BinaryDistribution(Distribution):
  8. """Distribution which always forces a binary package with platform name"""
  9. def is_pure(self):
  10. return False
  11. def has_ext_modules(self):
  12. return True
  13. class InstallPlatlib(install):
  14. def finalize_options(self):
  15. install.finalize_options(self)
  16. if self.distribution.has_ext_modules():
  17. self.install_lib = self.install_platlib
  18. setup(
  19. name = 'pyLemma',
  20. version = '0.0.4',
  21. author = 'Trevor Irons and others',
  22. author_email = 'Trevor.Irons@lemmasoftware.org',
  23. description = 'A short description of the app/lib',
  24. long_description = 'A longer one',
  25. classifiers=[
  26. 'Development Status :: 3 - Alpha',
  27. 'Intended Audience :: Developers',
  28. 'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)',
  29. 'Topic :: Scientific/Engineering',
  30. 'Programming Language :: Python :: 3',
  31. ],
  32. #packages = ['pyLemma.pyFDEM1D'],
  33. packages=find_packages(),
  34. #package_dir = {
  35. # '': '../'
  36. #},
  37. include_package_data=True,
  38. package_data = {
  39. #'pyLemma': ['pyFDEM1D.*.so']
  40. #'pyLemma.pyFDEM1D': ['pyFDEM1D.*.so']
  41. #'pyLemma.pyFDEM1D': ['pyFDEM1D.*.so']
  42. '': ['LemmaCore.*.so','FDEM1D.*.so']
  43. },
  44. zip_safe=False,
  45. cmdclass={'install':InstallPlatlib},
  46. distclass=BinaryDistribution,
  47. )
  48. #ext_modules=[CMakeExtension('proj_name')],
  49. #cmdclass=dict(build_ext=CMakeBuild),