Lemma is an Electromagnetics API
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

setup.py 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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.7',
  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. '': ['LemmaCore.*','FDEM1D.*']
  44. },
  45. zip_safe=False,
  46. cmdclass={'install':InstallPlatlib},
  47. distclass=BinaryDistribution,
  48. )
  49. #ext_modules=[CMakeExtension('proj_name')],
  50. #cmdclass=dict(build_ext=CMakeBuild),