Skip to content

Commit 2759379

Browse files
msimacekblink1073
andauthored
PYTHON-5391 Skip C extension build on GraalPy (#2349)
Co-authored-by: Steven Silvester <[email protected]>
1 parent b8460b6 commit 2759379

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

_setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,11 @@ def build_extension(self, ext):
130130
except ValueError:
131131
pass
132132
ext_modules = []
133-
elif sys.platform.startswith("java") or sys.platform == "cli" or "PyPy" in sys.version:
133+
elif (
134+
sys.platform.startswith("java")
135+
or sys.platform == "cli"
136+
or sys.implementation.name in ("pypy", "graalpy")
137+
):
134138
sys.stdout.write(
135139
"""
136140
*****************************************************\n

0 commit comments

Comments
 (0)