ASR_BASE
Change-Id: Icf3719cc0afe3eeb3edc7fa80a2eb5199ca9dda1
diff --git a/external/subpack/lang/python/python-pip/patches/002-pip-runner-pyc-fix.patch b/external/subpack/lang/python/python-pip/patches/002-pip-runner-pyc-fix.patch
new file mode 100644
index 0000000..8f68049
--- /dev/null
+++ b/external/subpack/lang/python/python-pip/patches/002-pip-runner-pyc-fix.patch
@@ -0,0 +1,15 @@
+--- a/src/pip/_internal/build_env.py
++++ b/src/pip/_internal/build_env.py
+@@ -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")
++ 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]: