Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 1.5 kB view raw
1diff --git a/setup.py b/setup.py 2index 8e1c220..45297b6 100644 3--- a/setup.py 4+++ b/setup.py 5@@ -25,20 +25,6 @@ class CustomBuildExtCommand(build_ext): 6 install_h3(h3_version) 7 8 9-# Tested with wheel v0.29.0 10-class BinaryDistribution(Distribution): 11- def __init__(self, attrs=None): 12- Distribution.__init__(self, attrs) 13- # The values used for the name and sources in the Extension below are 14- # not important, because we override the build_ext command above. 15- # The normal C extension building logic is never invoked, and is 16- # replaced with our own custom logic. However, ext_modules cannot be 17- # empty, because this signals to other parts of distutils that our 18- # package contains C extensions and thus needs to be built for 19- # different platforms separately. 20- self.ext_modules = [Extension('h3c', [])] 21- 22- 23 long_description = open('README.rst').read() 24 25 setup( 26@@ -52,14 +38,10 @@ setup( 27 url='https://github.com/uber/h3-py.git', 28 packages=find_packages(exclude=['tests', 'tests.*']), 29 install_requires=[], 30- cmdclass={ 31- 'build_ext': CustomBuildExtCommand, 32- }, 33 package_data={ 34 'h-py': 35 ['out/*.dylib' if platform.system() == 'Darwin' else ( 36 'out/*.dll' if platform.system() == 'Windows' else 37 'out/*.so.*')] 38 }, 39- license='Apache License 2.0', 40- distclass=BinaryDistribution) 41+ license='Apache License 2.0')