mirror of
https://github.com/openwrt/packages.git
synced 2026-04-16 03:12:16 +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>
23 lines
877 B
Diff
23 lines
877 B
Diff
--- a/src/pip/_vendor/pyproject_hooks/_in_process/__init__.py
|
|
+++ b/src/pip/_vendor/pyproject_hooks/_in_process/__init__.py
|
|
@@ -11,11 +11,17 @@ try:
|
|
except AttributeError:
|
|
# Python 3.8 compatibility
|
|
def _in_proc_script_path():
|
|
- return resources.path(__package__, "_in_process.py")
|
|
+ filename = "_in_process.pyc"
|
|
+ if resources.is_resource(__package__, "_in_process.py"):
|
|
+ filename = "_in_process.py"
|
|
+ return resources.path(__package__, filename)
|
|
|
|
else:
|
|
|
|
def _in_proc_script_path():
|
|
+ filename = "_in_process.pyc"
|
|
+ if resources.files(__package__).joinpath("_in_process.py").is_file():
|
|
+ filename = "_in_process.py"
|
|
return resources.as_file(
|
|
- resources.files(__package__).joinpath("_in_process.py")
|
|
+ resources.files(__package__).joinpath(filename)
|
|
)
|