Skip to content

Commit

Permalink
Build wheels as py3-none-{platform}.
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosperate committed Nov 24, 2023
1 parent 7a62b64 commit be55ad5
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import sys
from setuptools import setup, Extension, Distribution
from setuptools.command.build_ext import build_ext
from wheel.bdist_wheel import bdist_wheel
import shutil
import sysconfig

Expand Down Expand Up @@ -235,6 +236,15 @@ def get_names(self):
def get_outputs(self):
return self._found_paths

class bdist_wheel_abi_none(bdist_wheel):
def finalize_options(self):
bdist_wheel.finalize_options(self)
self.root_is_pure = False

def get_tag(self):
python, abi, plat = bdist_wheel.get_tag(self)
return "py3", "none", plat


class BinaryDistribution(Distribution):
def has_ext_modules(self):
Expand All @@ -246,6 +256,7 @@ def has_ext_modules(self):
# Dummy extension to trigger build_ext
ext_modules=[Extension('', sources=[])],
cmdclass={
'build_ext': libusb_build_ext
'build_ext': libusb_build_ext,
'bdist_wheel': bdist_wheel_abi_none,
},
)

0 comments on commit be55ad5

Please sign in to comment.