python-pip: Fix error when installing packages that require compilation 11946/head
authorJeffery To <jeffery.to@gmail.com>
Fri, 24 Apr 2020 15:31:44 +0000 (23:31 +0800)
committerJeffery To <jeffery.to@gmail.com>
Fri, 24 Apr 2020 15:31:44 +0000 (23:31 +0800)
This addresses one of the issues raised in #11912.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
lang/python/python-version.mk
lang/python/python/patches-pip/001-pep517-pyc-fix.patch [new file with mode: 0644]

index 2da2fa87bce9d649dbfe690387aa42c868922586..8950904c46c615b719b9c614c71804d52d88025d 100644 (file)
@@ -9,7 +9,7 @@ PYTHON_VERSION:=2.7
 PYTHON_VERSION_MICRO:=17
 
 PYTHON_SETUPTOOLS_PKG_RELEASE:=1
-PYTHON_PIP_PKG_RELEASE:=1
+PYTHON_PIP_PKG_RELEASE:=2
 
 PYTHON_SETUPTOOLS_VERSION:=41.2.0
 PYTHON_PIP_VERSION:=19.2.3
diff --git a/lang/python/python/patches-pip/001-pep517-pyc-fix.patch b/lang/python/python/patches-pip/001-pep517-pyc-fix.patch
new file mode 100644 (file)
index 0000000..c284f01
--- /dev/null
@@ -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():