Skip to content

Commit 4286e49

Browse files
committed
Remove 'm' SOABI flag that no longer exists in 3.9+
See https://docs.python.org/3/library/sys.html#sys.abiflags > Changed in version 3.8: Default flags became an empty string (m flag for pymalloc has been removed).
1 parent 442b937 commit 4286e49

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

setuptools/command/bdist_wheel.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,19 +111,11 @@ def get_abi_tag() -> str | None:
111111
impl = tags.interpreter_name()
112112
if not soabi and impl in ("cp", "pp") and hasattr(sys, "maxunicode"):
113113
d = ""
114-
m = ""
115114
u = ""
116115
if get_flag("Py_DEBUG", hasattr(sys, "gettotalrefcount"), warn=(impl == "cp")):
117116
d = "d"
118117

119-
if get_flag(
120-
"WITH_PYMALLOC",
121-
impl == "cp",
122-
warn=(impl == "cp" and sys.version_info < (3, 8)),
123-
) and sys.version_info < (3, 8):
124-
m = "m"
125-
126-
abi = f"{impl}{tags.interpreter_version()}{d}{m}{u}"
118+
abi = f"{impl}{tags.interpreter_version()}{d}{u}"
127119
elif soabi and impl == "cp" and soabi.startswith("cpython"):
128120
# non-Windows
129121
abi = "cp" + soabi.split("-")[1]

0 commit comments

Comments
 (0)