We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents abf032e + 413f275 commit 257f5b3Copy full SHA for 257f5b3
1 file changed
setup.py
@@ -30,6 +30,17 @@ def finalize_options(self):
30
super().finalize_options()
31
self.root_is_pure = False
32
33
+ def run(self):
34
+ # Temporarily pretend we have ext_modules so that install_lib places
35
+ # files in platlib (the wheel root with Root-Is-Purelib: false) rather
36
+ # than in {dist_info}.data/purelib/ which auditwheel rejects.
37
+ orig = self.distribution.has_ext_modules
38
+ self.distribution.has_ext_modules = lambda: True
39
+ try:
40
+ super().run()
41
+ finally:
42
+ self.distribution.has_ext_modules = orig
43
+
44
def get_tag(self):
45
_, _, plat = super().get_tag()
46
return "py3", "none", plat
0 commit comments