PYTHON-5391 Skip C extension build on GraalPy (#2349)
Co-authored-by: Steven Silvester <steve.silvester@mongodb.com>
This commit is contained in:
parent
b8460b6001
commit
27593796fb
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user