Browse Source

Fix for python license

iss7
Trevor Irons 4 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,10 +1,15 @@
1
-#from distutils.core import setup
2 1
 from setuptools import setup, Extension, find_packages
3
-
2
+from setuptools.dist import Distribution
4 3
 import sys
4
+
5 5
 if sys.version_info < (3,0):
6 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 13
 setup(
9 14
   name             = 'pyLemma',
10 15
   version          = '0.0.2', 
@@ -15,7 +20,7 @@ setup(
15 20
   classifiers=[
16 21
         'Development Status :: 3 - Alpha',
17 22
         'Intended Audience :: Developers',
18
-        'License :: OSI Approved :: MPL License',
23
+        'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)',
19 24
         'Topic :: Scientific/Engineering',
20 25
         'Programming Language :: Python :: 3',
21 26
   ],
@@ -32,9 +37,9 @@ setup(
32 37
     '': ['pyFDEM1D.*.so']
33 38
   },
34 39
   zip_safe=False,
40
+  distclass=BinaryDistribution,
35 41
 )
36 42
 
37
-
38 43
     #ext_modules=[CMakeExtension('proj_name')],
39 44
     #cmdclass=dict(build_ext=CMakeBuild),
40 45
 

Loading…
Cancel
Save