File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 26
26
import sys
27
27
from setuptools import setup , Extension , Distribution
28
28
from setuptools .command .build_ext import build_ext
29
+ from wheel .bdist_wheel import bdist_wheel
29
30
import shutil
30
31
import sysconfig
31
32
@@ -235,6 +236,15 @@ def get_names(self):
235
236
def get_outputs (self ):
236
237
return self ._found_paths
237
238
239
+ class bdist_wheel_abi_none (bdist_wheel ):
240
+ def finalize_options (self ):
241
+ bdist_wheel .finalize_options (self )
242
+ self .root_is_pure = False
243
+
244
+ def get_tag (self ):
245
+ python , abi , plat = bdist_wheel .get_tag (self )
246
+ return "py3" , "none" , plat
247
+
238
248
239
249
class BinaryDistribution (Distribution ):
240
250
def has_ext_modules (self ):
@@ -246,6 +256,7 @@ def has_ext_modules(self):
246
256
# Dummy extension to trigger build_ext
247
257
ext_modules = [Extension ('' , sources = [])],
248
258
cmdclass = {
249
- 'build_ext' : libusb_build_ext
259
+ 'build_ext' : libusb_build_ext ,
260
+ 'bdist_wheel' : bdist_wheel_abi_none ,
250
261
},
251
262
)
You can’t perform that action at this time.
0 commit comments