Skip to content

Commit 96a94e2

Browse files
committed
fix: support graalpy
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
1 parent 0b77701 commit 96a94e2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/scikit_build_core/builder/_load_provider.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ def __iter__(self) -> Iterator[str]:
125125
yield from self.project
126126

127127
# Iterate over the keys of the dynamic metadata providers
128-
yield from self.providers
128+
# GraalPy needs it to be a copy
129+
yield from list(self.providers)
129130

130131
def __len__(self) -> int:
131132
return len(self.project) + len(self.providers)

tests/test_setuptools_abi3.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
@pytest.mark.skipif(
2121
sys.implementation.name == "pypy", reason="pypy does not support abi3"
2222
)
23+
@pytest.mark.skipif(
24+
sys.implementation.name == "graalpy", reason="graalpy does not support abi3"
25+
)
2326
@pytest.mark.skipif(
2427
sysconfig.get_config_var("Py_GIL_DISABLED"),
2528
reason="Free-threaded Python does not support abi3",

0 commit comments

Comments
 (0)