mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 19:02:09 +00:00
Refresh all patches for pip 26.0.1: - 001 (pyproject-hooks-pyc-fix): vendored pyproject_hooks switched from single to double quotes and multiline block format; restructure to minimal diff (keep unchanged context lines as context) - 002 (pip-runner-pyc-fix): get_runnable_pip() shifted ~20 lines; Set[str] -> set[str] in trailing context; refresh offsets - 003 (disable-pip-version-check): option definition moved ~174 lines; refresh line number pip 26 also dropped the version-specific binary (e.g. pip3.14). Update the install rule to use pip3 as the primary binary and symlink pip/pip$(VERSION) to it. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
16 lines
481 B
Diff
16 lines
481 B
Diff
--- a/src/pip/_internal/build_env.py
|
|
+++ b/src/pip/_internal/build_env.py
|
|
@@ -74,7 +74,11 @@ def get_runnable_pip() -> str:
|
|
# case, we can use that directly.
|
|
return str(source)
|
|
|
|
- return os.fsdecode(source / "__pip-runner__.py")
|
|
+ filename = "__pip-runner__.pyc"
|
|
+ py = source / "__pip-runner__.py"
|
|
+ if py.is_file():
|
|
+ filename = "__pip-runner__.py"
|
|
+ return os.fsdecode(source / filename)
|
|
|
|
|
|
def _get_system_sitepackages() -> set[str]:
|