Browse Source

Fix for python license

iss7
Trevor Irons 5 years ago
parent
commit
ee744f9bd6
1 changed files with 9 additions and 4 deletions
  1. 9
    4
      python/setup.py

+ 9
- 4
python/setup.py View File

1
-#from distutils.core import setup
2
 from setuptools import setup, Extension, find_packages
1
 from setuptools import setup, Extension, find_packages
3
-
2
+from setuptools.dist import Distribution
4
 import sys
3
 import sys
4
+
5
 if sys.version_info < (3,0):
5
 if sys.version_info < (3,0):
6
   sys.exit('Sorry, Python < 3.0 is not supported')
6
   sys.exit('Sorry, Python < 3.0 is not supported')
7
 
7
 
8
+class BinaryDistribution(Distribution):
9
+    """Distribution which always forces a binary package with platform name"""
10
+    def has_ext_modules(foo):
11
+        return True
12
+
8
 setup(
13
 setup(
9
   name             = 'pyLemma',
14
   name             = 'pyLemma',
10
   version          = '0.0.2', 
15
   version          = '0.0.2', 
15
   classifiers=[
20
   classifiers=[
16
         'Development Status :: 3 - Alpha',
21
         'Development Status :: 3 - Alpha',
17
         'Intended Audience :: Developers',
22
         'Intended Audience :: Developers',
18
-        'License :: OSI Approved :: MPL License',
23
+        'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)',
19
         'Topic :: Scientific/Engineering',
24
         'Topic :: Scientific/Engineering',
20
         'Programming Language :: Python :: 3',
25
         'Programming Language :: Python :: 3',
21
   ],
26
   ],
32
     '': ['pyFDEM1D.*.so']
37
     '': ['pyFDEM1D.*.so']
33
   },
38
   },
34
   zip_safe=False,
39
   zip_safe=False,
40
+  distclass=BinaryDistribution,
35
 )
41
 )
36
 
42
 
37
-
38
     #ext_modules=[CMakeExtension('proj_name')],
43
     #ext_modules=[CMakeExtension('proj_name')],
39
     #cmdclass=dict(build_ext=CMakeBuild),
44
     #cmdclass=dict(build_ext=CMakeBuild),
40
 
45
 

Loading…
Cancel
Save