Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import subprocess,sys
from pathlib import Path
from setuptools import setup
from setuptools import Distribution,setup
from setuptools.command.bdist_wheel import bdist_wheel as _bdist_wheel

class BinaryWheel(_bdist_wheel):
def finalize_options(self):
super().finalize_options()
self.root_is_pure = False
class BinaryDistribution(Distribution):
def has_ext_modules(self): return True

class BinaryWheel(_bdist_wheel):
def get_tag(self):
_,_,plat = super().get_tag()
return 'py3','none',plat
Expand All @@ -16,4 +15,4 @@ def run(self):
subprocess.run([sys.executable, str(Path(__file__).with_name('build_lib.py'))], check=True)
super().run()

setup(cmdclass={'bdist_wheel': BinaryWheel})
setup(cmdclass={'bdist_wheel': BinaryWheel}, distclass=BinaryDistribution)