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.
1 parent e96ef36 commit 38529a0Copy full SHA for 38529a0
setup.py
@@ -1,8 +1,24 @@
1
#!/usr/bin/env python
2
+from typing import Tuple
3
4
from setuptools import Extension, setup
5
+from wheel.bdist_wheel import bdist_wheel
6
+
7
8
+class bdist_wheel_abi3(bdist_wheel):
9
+ def get_tag(self) -> Tuple[str, str, str]:
10
+ # From https://github.com/joerick/python-abi3-package-sample/blob/main/setup.py
11
+ python, abi, plat = super().get_tag()
12
13
+ if python.startswith("cp"):
14
+ # on CPython, our wheels are abi3 and compatible back to 3.8
15
+ return "cp38", "abi3", plat
16
17
+ return python, abi, plat
18
19
20
setup(
21
+ cmdclass={"bdist_wheel": bdist_wheel_abi3},
22
ext_modules=[
23
Extension(
24
"getdents._getdents",
0 commit comments