2026-09-02 18:11:09 +00:00
|
|
|
from setuptools import Distribution, setup
|
2026-07-05 18:15:54 -07:00
|
|
|
from wheel.bdist_wheel import bdist_wheel
|
|
|
|
|
|
|
|
|
|
|
2026-09-02 18:11:09 +00:00
|
|
|
class BinaryDistribution(Distribution):
|
|
|
|
|
def has_ext_modules(self):
|
|
|
|
|
return True
|
|
|
|
|
|
|
|
|
|
|
2026-07-05 18:15:54 -07:00
|
|
|
class BinaryWheel(bdist_wheel):
|
|
|
|
|
def finalize_options(self):
|
|
|
|
|
super().finalize_options()
|
|
|
|
|
self.root_is_pure = False
|
|
|
|
|
|
|
|
|
|
def get_tag(self):
|
|
|
|
|
_, _, platform_tag = super().get_tag()
|
|
|
|
|
return "py3", "none", platform_tag
|
|
|
|
|
|
|
|
|
|
|
2026-09-02 18:11:09 +00:00
|
|
|
setup(cmdclass={"bdist_wheel": BinaryWheel}, distclass=BinaryDistribution)
|