diff options
| author | Jeffery To <jeffery.to@gmail.com> | 2023-10-26 20:16:42 +0800 |
|---|---|---|
| committer | Jeffery To <jeffery.to@gmail.com> | 2023-10-26 20:16:42 +0800 |
| commit | 548fdba3fdc832fca85f953ca78ddf322efb016d (patch) | |
| tree | da0386121e1cd8ca020a0db7329eb008ec5f8f88 /lang/python/python-pip/patches/002-pip-runner-pyc-fix.patch | |
| parent | 2496d74340e90b8a50ddb312c0841d26f52c4821 (diff) | |
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>
Diffstat (limited to 'lang/python/python-pip/patches/002-pip-runner-pyc-fix.patch')
| -rw-r--r-- | lang/python/python-pip/patches/002-pip-runner-pyc-fix.patch | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lang/python/python-pip/patches/002-pip-runner-pyc-fix.patch b/lang/python/python-pip/patches/002-pip-runner-pyc-fix.patch index 4616fe065..8f68049a8 100644 --- a/lang/python/python-pip/patches/002-pip-runner-pyc-fix.patch +++ b/lang/python/python-pip/patches/002-pip-runner-pyc-fix.patch @@ -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]: |
