mirror of
https://github.com/openwrt/packages.git
synced 2025-12-22 08:14:32 +04:00
python-pip: Update to 23.3.1, redo/refresh patches
001-pyproject-hooks-pyc-fix.patch and 002-pip-runner-pyc-fix.patch are redone to use source files if they are present. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
--- a/src/pip/_internal/build_env.py
|
||||
+++ b/src/pip/_internal/build_env.py
|
||||
@@ -54,7 +54,7 @@ def get_runnable_pip() -> str:
|
||||
@@ -54,7 +54,11 @@ def get_runnable_pip() -> str:
|
||||
# case, we can use that directly.
|
||||
return str(source)
|
||||
|
||||
- return os.fsdecode(source / "__pip-runner__.py")
|
||||
+ return os.fsdecode(source / "__pip-runner__.pyc")
|
||||
+ 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]:
|
||||
|
||||
Reference in New Issue
Block a user