We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25f03b7 commit 1494c29Copy full SHA for 1494c29
1 file changed
setup.py
@@ -17,6 +17,7 @@
17
18
from setuptools import setup
19
from setuptools.command.build import build
20
+from wheel.bdist_wheel import bdist_wheel
21
import shutil
22
import subprocess
23
@@ -47,8 +48,22 @@ def run(self):
47
48
super().run()
49
50
51
+class PlatformBdistWheel(bdist_wheel):
52
+ """Tag wheel as platform-specific since it contains a compiled binary."""
53
+
54
+ def finalize_options(self):
55
+ super().finalize_options()
56
+ self.root_is_pure = False
57
58
+ def get_tag(self):
59
+ python, abi, plat = super().get_tag()
60
+ # Use py3-none but keep the platform tag
61
+ return "py3", "none", plat
62
63
64
setup(
65
cmdclass={
66
"build": CustomBuildCommand,
67
+ "bdist_wheel": PlatformBdistWheel,
68
},
69
)
0 commit comments