from setuptools import setup, Extension, find_packages from setuptools.command.install import install from setuptools.dist import Distribution import sys if sys.version_info < (3,0): sys.exit('Sorry, Python < 3.0 is not supported') class BinaryDistribution(Distribution): """Distribution which always forces a binary package with platform name""" def is_pure(self): return False def has_ext_modules(self): return True class InstallPlatlib(install): def finalize_options(self): install.finalize_options(self) if self.distribution.has_ext_modules(): self.install_lib = self.install_platlib setup( name = 'pyLemma', version = '0.0.8', author = 'Trevor Irons and others', author_email = 'Trevor.Irons@lemmasoftware.org', description = 'A short description of the app/lib', long_description = 'A longer one', classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)', 'Topic :: Scientific/Engineering', 'Programming Language :: Python :: 3', ], #packages = ['pyLemma.pyFDEM1D'], packages=find_packages(), #package_dir = { # '': '../' #}, include_package_data=True, package_data = { #'pyLemma': ['pyFDEM1D.*.so'] #'pyLemma.pyFDEM1D': ['pyFDEM1D.*.so'] #'pyLemma.pyFDEM1D': ['pyFDEM1D.*.so'] #'': ['LemmaCore.*.so','FDEM1D.*.so'] '': ['LemmaCore.*','FDEM1D.*','Merlin.*'] }, zip_safe=False, cmdclass={'install':InstallPlatlib}, distclass=BinaryDistribution, ) #ext_modules=[CMakeExtension('proj_name')], #cmdclass=dict(build_ext=CMakeBuild),