summaryrefslogtreecommitdiff
path: root/lang/python/python3
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2020-04-24 17:31:41 +0300
committerGitHub <noreply@github.com>2020-04-24 17:31:41 +0300
commit368a072c8adb2b9014978a5d53b285dfb3ac326a (patch)
tree5bbb88b026a8273d55eba76dbd312cbf84935d3f /lang/python/python3
parent9eebb43159f0946f9efef41bbbd14361df60afa7 (diff)
parent11bc05763d6cb351842a7bd55e736b601656a41a (diff)
Merge pull request #11944 from jefferyto/python3-pip-pep517-pyc-fix
python3-pip: Fix error when installing packages that require compilation
Diffstat (limited to 'lang/python/python3')
-rw-r--r--lang/python/python3/patches-pip/001-pep517-pyc-fix.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/python/python3/patches-pip/001-pep517-pyc-fix.patch b/lang/python/python3/patches-pip/001-pep517-pyc-fix.patch
new file mode 100644
index 000000000..c284f0111
--- /dev/null
+++ b/lang/python/python3/patches-pip/001-pep517-pyc-fix.patch
@@ -0,0 +1,13 @@
+diff -Nurp a/pip/_vendor/pep517/wrappers.py b/pip/_vendor/pep517/wrappers.py
+--- a/pip/_vendor/pep517/wrappers.py 2019-07-30 20:02:13.000000000 +0800
++++ b/pip/_vendor/pep517/wrappers.py 2020-04-24 17:23:35.764905235 +0800
+@@ -10,6 +10,9 @@ from . import compat
+
+ _in_proc_script = pjoin(dirname(abspath(__file__)), '_in_process.py')
+
++if not os.path.isfile(_in_proc_script):
++ _in_proc_script = pjoin(dirname(abspath(__file__)), '_in_process.pyc')
++
+
+ @contextmanager
+ def tempdir():