Add downloading of GraalPy (#13172)

## Summary

This adds GraalPy download metadata so that `uv python install graalpy`
works. See https://github.com/astral-sh/uv/issues/13114

## Test Plan

The existing integration test was changed to test this functionality.
This commit is contained in:
Tim Felgentreff 2025-05-06 18:02:27 +02:00 committed by GitHub
parent 9071e0eeac
commit 878c2acdf3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 416 additions and 34 deletions

View file

@ -197,8 +197,8 @@ if __name__ == "__main__":
# Attempt to install NumPy.
# This ensures that we can successfully install a package with native libraries.
#
# NumPy doesn't distribute wheels for Python 3.13 (at time of writing).
if sys.version_info < (3, 13):
# NumPy doesn't distribute wheels for Python 3.13 or GraalPy (at time of writing).
if sys.version_info < (3, 13) and sys.implementation.name != "graalpy":
install_package(uv=uv, package="numpy")
# Attempt to install `pydantic_core`.