Skip to content

Commit 6549f43

Browse files
committed
Remove workaround for building abi3 wheels
1 parent 7af3c69 commit 6549f43

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools", "wheel"]
2+
requires = ["setuptools>=70.1"]
33

44
[project]
55
name = "getdents"

setup.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,8 @@
11
#!/usr/bin/env python
2-
from typing import Tuple
3-
42
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-
193

204
setup(
21-
cmdclass={"bdist_wheel": bdist_wheel_abi3},
5+
options={"bdist_wheel": {"py_limited_api": "cp38"}},
226
ext_modules=[
237
Extension(
248
"getdents._getdents",

0 commit comments

Comments
 (0)