Skip to content

Commit 4ae8cd4

Browse files
committed
[GR-56850] Add GraalPy repository to our patched pip
PullRequest: graalpython/3427
2 parents fde1ea1 + f05b7f8 commit 4ae8cd4

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ language runtime. The main focus is on user-observable behavior of the engine.
1313
* In Jython emulation mode we now magically fall back to calling Java getters or setters when using Python attribute access for non-visible properties. This can help migrating away from Jython if you relied on this behavior.
1414
* The option `python.EmulateJython` to enable Jython emulation is now marked as stable, and can thus be relied upon in production.
1515
* Fixed parsing of pyvenv.cfg according to PEP 405, which is required to use [uv](https://github.com/astral-sh/uv?tab=readme-ov-file#uv) generated venvs with GraalPy.
16+
* Use https://www.graalvm.org/python/wheels/ as the default value for the `--extra-index-url` pip option. This will make it easy for users to install GraalPy binary wheels in the future.
1617

1718
## Version 24.0.0
1819
* We now provide a collection of recipes in the form of GitHub Actions to build popular native extensions on GraalPy. These provide a reproducible way for the community to build native extensions for GraalPy with the correct dependencies. See scripts/wheelbuilder/README.md for details.

graalpython/lib-graalpython/patches/pip/pip-23.2.1.patch

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,20 @@ index 6633ef7..d7c21db 100644
1010
+
1111
+__GRAALPY_PATCHED = True
1212
diff --git a/pip/_internal/cli/cmdoptions.py b/pip/_internal/cli/cmdoptions.py
13-
index 02ba608..a3bba70 100644
13+
index 02ba608..85c7c22 100644
1414
--- a/pip/_internal/cli/cmdoptions.py
1515
+++ b/pip/_internal/cli/cmdoptions.py
16-
@@ -892,7 +892,7 @@ disable_pip_version_check: Callable[..., Option] = partial(
16+
@@ -357,7 +357,8 @@ def extra_index_url() -> Option:
17+
dest="extra_index_urls",
18+
metavar="URL",
19+
action="append",
20+
- default=[],
21+
+ # GraalPy change: add default extra index with our prebuilt binaries
22+
+ default=["https://www.graalvm.org/python/wheels/"],
23+
help="Extra URLs of package indexes to use in addition to "
24+
"--index-url. Should follow the same rules as "
25+
"--index-url.",
26+
@@ -892,7 +893,7 @@ disable_pip_version_check: Callable[..., Option] = partial(
1727
"--disable-pip-version-check",
1828
dest="disable_pip_version_check",
1929
action="store_true",
Binary file not shown.

0 commit comments

Comments
 (0)