From 5b660755711e284e92469219b7d17d9dc9186b6a Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Fri, 24 Apr 2020 21:09:37 +0800 Subject: python3-pip: Fix error when installing packages that require compilation This addresses one of the issues raised in #11912. Signed-off-by: Jeffery To (cherry picked from commit 11bc05763d6cb351842a7bd55e736b601656a41a) --- lang/python/python3/patches-pip/001-pep517-pyc-fix.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lang/python/python3/patches-pip/001-pep517-pyc-fix.patch (limited to 'lang/python/python3') 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(): -- cgit