Skip to content

Commit 8906f1f

Browse files
authored
fix: Windows ARM tag (#215)
1 parent 03b9024 commit 8906f1f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/scikit_build_core/builder/wheel_tag.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class WheelTag:
2424
abis: list[str]
2525
archs: list[str]
2626

27-
# TODO: plats only used on macOS
27+
# TODO: plats only used on macOS & Windows
2828
@classmethod
2929
def compute_best(
3030
cls,
@@ -35,7 +35,10 @@ def compute_best(
3535
best_tag = next(packaging.tags.sys_tags())
3636
interp, abi, *plats = (best_tag.interpreter, best_tag.abi, best_tag.platform)
3737
pyvers = [interp]
38-
if sys.platform.startswith("darwin"):
38+
39+
if sys.platform.startswith("win") and archs:
40+
plats = (x.replace("-", "_") for x in archs)
41+
elif sys.platform.startswith("darwin"):
3942
pairs: Iterable[tuple[str | None, bool]]
4043
if expand_macos and archs == ["universal2"]:
4144
pairs = zip(

0 commit comments

Comments
 (0)