|
6 | 6 | import epicscorelibs.version |
7 | 7 | from setuptools_dso import Extension, setup |
8 | 8 | from epicscorelibs.config import get_config_var |
| 9 | +from wheel.bdist_wheel import bdist_wheel |
9 | 10 |
|
10 | 11 | # Place the directory containing _version_git on the path |
11 | 12 | for path, _, filenames in os.walk(os.path.dirname(os.path.abspath(__file__))): |
@@ -89,8 +90,19 @@ def install_for_development(self): |
89 | 90 | if not os.path.exists(link): |
90 | 91 | os.symlink(os.path.join(self.install_dir, "epicscorelibs"), link) |
91 | 92 |
|
| 93 | + |
| 94 | +class Wheel(bdist_wheel): |
| 95 | + def get_tag(self): |
| 96 | + impl, abi_tag, plat_name = bdist_wheel.get_tag(self) |
| 97 | + # We want to produce manylinux tagged builds, but can't use |
| 98 | + # auditwheel as it isn't compatible with setuptools_dso |
| 99 | + # override the tag here as cibuildwheel won't let us do this |
| 100 | + plat_name = os.environ.get("AUDITWHEEL_PLAT", plat_name) |
| 101 | + return (impl, abi_tag, plat_name) |
| 102 | + |
| 103 | + |
92 | 104 | setup( |
93 | | - cmdclass=dict(develop=Develop, **get_cmdclass()), |
| 105 | + cmdclass=dict(develop=Develop, bdist_wheel=Wheel, **get_cmdclass()), |
94 | 106 | version=__version__, |
95 | 107 | ext_modules = [ext], |
96 | 108 | install_requires = [ |
|
0 commit comments