summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2020-04-24 21:09:37 +0800
committerJeffery To <jeffery.to@gmail.com>2020-04-24 21:09:37 +0800
commit11bc05763d6cb351842a7bd55e736b601656a41a (patch)
tree2b47383df5023f5355fcaf5d412e4a1053a440aa /lang/python
parenta4bb706918c58c7f8718e5de1de2e719eecabbd2 (diff)
python3-pip: Fix error when installing packages that require compilation
This addresses one of the issues raised in #11912. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/python3-version.mk2
-rw-r--r--lang/python/python3/patches-pip/001-pep517-pyc-fix.patch13
2 files changed, 14 insertions, 1 deletions
diff --git a/lang/python/python3-version.mk b/lang/python/python3-version.mk
index db59f2739..74d6e315b 100644
--- a/lang/python/python3-version.mk
+++ b/lang/python/python3-version.mk
@@ -13,7 +13,7 @@ PYTHON3_VERSION_MICRO:=2
PYTHON3_VERSION:=$(PYTHON3_VERSION_MAJOR).$(PYTHON3_VERSION_MINOR)
PYTHON3_SETUPTOOLS_PKG_RELEASE:=1
-PYTHON3_PIP_PKG_RELEASE:=2
+PYTHON3_PIP_PKG_RELEASE:=3
PYTHON3_SETUPTOOLS_VERSION:=41.2.0
PYTHON3_PIP_VERSION:=19.2.3
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():