summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorJason Wessel <jason.wessel@windriver.com>2018-03-07 12:00:37 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-08 10:39:33 -0800
commit0fa0baed74dfc1d0b4245fd7c552a55c12ce6b23 (patch)
tree3090675caf24078f47a35bfe5f06a1a5ffc95301 /meta
parent0d4459e7086fced5e9e0b4ad10378c9eddec56a8 (diff)
downloadpoky-0fa0baed74dfc1d0b4245fd7c552a55c12ce6b23.tar.gz
python3: Fix install purelib to make pip3-python work properly
The oe-core version of python3 patches the purelib use directory to the system libdir so as to make it work with multilibs properly inside the patch fix_for_using_different_libdir.patch with: - 'purelib': '{base}/lib/python{py_version_short}/site-packages', + 'purelib': '{base}/'+sys.lib+'/python{py_version_short}/site-packages', The problem is that this broke the pip3-python package because the install directory is out of sync when using a multilib version of python. When ever a module is installed with pip3 install that is a purelib it will get installed to a location that python3 will never reference and cause random failures. This patch fixes the purelib install directory to match the purelib use directory for externally managed python modules when using multilibs. (From OE-Core rev: 45afadf0b652922f9e60c5a778acd3612da83306) Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/python/python/multilib.patch6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/recipes-devtools/python/python/multilib.patch b/meta/recipes-devtools/python/python/multilib.patch
index f5568d2d2b..94fdfeb630 100644
--- a/meta/recipes-devtools/python/python/multilib.patch
+++ b/meta/recipes-devtools/python/python/multilib.patch
@@ -41,11 +41,13 @@ Index: Python-2.7.13/Lib/distutils/command/install.py
41 if sys.version < "2.2": 41 if sys.version < "2.2":
42 WINDOWS_SCHEME = { 42 WINDOWS_SCHEME = {
43 'purelib': '$base', 43 'purelib': '$base',
44@@ -42,7 +44,7 @@ else: 44@@ -41,8 +43,8 @@ else:
45
45 INSTALL_SCHEMES = { 46 INSTALL_SCHEMES = {
46 'unix_prefix': { 47 'unix_prefix': {
47 'purelib': '$base/lib/python$py_version_short/site-packages', 48- 'purelib': '$base/lib/python$py_version_short/site-packages',
48- 'platlib': '$platbase/lib/python$py_version_short/site-packages', 49- 'platlib': '$platbase/lib/python$py_version_short/site-packages',
50+ 'purelib': '$platbase/'+libname+'/python$py_version_short/site-packages',
49+ 'platlib': '$platbase/'+libname+'/python$py_version_short/site-packages', 51+ 'platlib': '$platbase/'+libname+'/python$py_version_short/site-packages',
50 'headers': '$base/include/python$py_version_short/$dist_name', 52 'headers': '$base/include/python$py_version_short/$dist_name',
51 'scripts': '$base/bin', 53 'scripts': '$base/bin',