PYTHON-5391 Skip C extension build on GraalPy (#2349)

Co-authored-by: Steven Silvester <steve.silvester@mongodb.com>
This commit is contained in:
Michael Šimáček 2025-05-23 19:01:30 +02:00 committed by GitHub
parent b8460b6001
commit 27593796fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -130,7 +130,11 @@ if "--no_ext" in sys.argv or os.environ.get("NO_EXT"):
except ValueError:
pass
ext_modules = []
elif sys.platform.startswith("java") or sys.platform == "cli" or "PyPy" in sys.version:
elif (
sys.platform.startswith("java")
or sys.platform == "cli"
or sys.implementation.name in ("pypy", "graalpy")
):
sys.stdout.write(
"""
*****************************************************\n