Main Lemma Repository
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

setup.py 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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,6):
  6. sys.exit('Sorry, Python < 3.6 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. with open("README.md", "r") as fh:
  19. long_description = fh.read()
  20. setup(
  21. name = 'pyLemma',
  22. version = '0.4.1',
  23. author = 'Trevor Irons and others',
  24. author_email = 'Trevor.Irons@lemmasoftware.org',
  25. description = 'PyLemma is a wrapper to Lemma',
  26. long_description = long_description,
  27. classifiers=[
  28. 'Development Status :: 3 - Alpha',
  29. 'Intended Audience :: Developers',
  30. 'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)',
  31. 'Topic :: Scientific/Engineering',
  32. 'Programming Language :: Python :: 3',
  33. ],
  34. #packages = ['pyLemma.pyFDEM1D'],
  35. packages=find_packages(),
  36. #package_dir = {
  37. # '': '../'
  38. #},
  39. include_package_data=True,
  40. package_data = {
  41. #'pyLemma': ['pyFDEM1D.*.so']
  42. #'pyLemma.pyFDEM1D': ['pyFDEM1D.*.so']
  43. #'pyLemma.pyFDEM1D': ['pyFDEM1D.*.so']
  44. #'': ['LemmaCore.*.so','FDEM1D.*.so']
  45. '': ['LemmaCore.*','FDEM1D.*','Merlin.*']
  46. },
  47. zip_safe=False,
  48. cmdclass={'install':InstallPlatlib},
  49. distclass=BinaryDistribution,
  50. )
  51. #ext_modules=[CMakeExtension('proj_name')],
  52. #cmdclass=dict(build_ext=CMakeBuild),