Skip to content

Commit 7007756

Browse files
cr1901frostming
andauthored
fix: Improve logic for detecting msys2-based Python (works for 3.11 and 3.… (pdm-project#6)
* Improve logic for detecting msys2-based Python (works for 3.11 and 3.12). * Make requested changes to new MinGW logic. * Update src/dep_logic/tags/platform.py --------- Co-authored-by: Frost Ming <[email protected]>
1 parent 59cce1d commit 7007756

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/dep_logic/tags/platform.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,11 @@ def current(cls) -> Self:
118118
# Ex: macosx-11.2-arm64
119119
version, architecture = version_arch.rsplit("-", 1)
120120
else:
121-
# Ex: linux-x86_64
121+
# Ex: linux-x86_64 or x86_64_msvcrt_gnu
122122
version = None
123123
architecture = version_arch
124+
if version_arch.startswith("x86_64"):
125+
architecture = "x86_64"
124126

125127
if operating_system == "linux":
126128
from packaging._manylinux import _get_glibc_version

0 commit comments

Comments
 (0)