diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2018-03-08 20:18:01 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-09 09:17:04 -0800 |
commit | e5f5aa5604a7617af839832ded457c8a824bcf2f (patch) | |
tree | 00e727d032b3abaaf545d07c578d80e415abfd79 /meta/recipes-devtools/python-numpy/files/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch | |
parent | d1d088db2879f1fefeebda0da815c1138fa52256 (diff) | |
download | poky-e5f5aa5604a7617af839832ded457c8a824bcf2f.tar.gz |
python-numpy: update to 1.14.1
Drop backported 0001-BUG-fix-infinite-loop-when-creating-np.pad-on-an-emp.patch.
Drop 0001-BUG-fix-infinite-loop-when-creating-np.pad-on-an-emp.patch as
upstream is using os.path.basename() instead now.
License-Update: License.txt file was update to list licenses of individual components;
not all of them are 3-clause BSD.
(From OE-Core rev: c70d1c07e4e697156bd49c43e2cc800f3085b182)
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python-numpy/files/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch')
-rw-r--r-- | meta/recipes-devtools/python-numpy/files/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/meta/recipes-devtools/python-numpy/files/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch b/meta/recipes-devtools/python-numpy/files/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch index ffd6ced136..516ccd7b9b 100644 --- a/meta/recipes-devtools/python-numpy/files/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch +++ b/meta/recipes-devtools/python-numpy/files/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch | |||
@@ -1,23 +1,24 @@ | |||
1 | From cc2ce6d8b6a3e6e2c8874896c10897034a80cd4f Mon Sep 17 00:00:00 2001 | 1 | From c8c6649b29a08f82e1d6761a6d62ce5f632313c5 Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Thu, 10 Dec 2015 13:20:30 +0200 | 3 | Date: Thu, 10 Dec 2015 13:20:30 +0200 |
4 | Subject: [PATCH] Don't search /usr and so on for libraries by default to avoid | 4 | Subject: [PATCH 1/3] Don't search /usr and so on for libraries by default to |
5 | host contamination. | 5 | avoid host contamination. |
6 | 6 | ||
7 | Upstream-Status: Inappropriate (As the code stands, this is a hack) | 7 | Upstream-Status: Inappropriate (As the code stands, this is a hack) |
8 | Signed-off-by: Ross Burton <ross.burton@intel.com> | 8 | Signed-off-by: Ross Burton <ross.burton@intel.com> |
9 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | 9 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
10 | |||
10 | --- | 11 | --- |
11 | numpy/distutils/system_info.py | 50 +++++------------------------------------- | 12 | numpy/distutils/system_info.py | 50 +++++------------------------------------- |
12 | 1 file changed, 6 insertions(+), 44 deletions(-) | 13 | 1 file changed, 6 insertions(+), 44 deletions(-) |
13 | 14 | ||
14 | Index: numpy-1.13.1/numpy/distutils/system_info.py | 15 | diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py |
15 | =================================================================== | 16 | index bea120c..544e056 100644 |
16 | --- numpy-1.13.1.orig/numpy/distutils/system_info.py | 17 | --- a/numpy/distutils/system_info.py |
17 | +++ numpy-1.13.1/numpy/distutils/system_info.py | 18 | +++ b/numpy/distutils/system_info.py |
18 | @@ -211,51 +211,13 @@ if sys.platform == 'win32': | 19 | @@ -262,51 +262,13 @@ if sys.platform == 'win32': |
19 | default_x11_lib_dirs = [] | 20 | add_system_root(os.path.join(conda_dir, 'Library')) |
20 | default_x11_include_dirs = [] | 21 | |
21 | else: | 22 | else: |
22 | - default_lib_dirs = libpaths(['/usr/local/lib', '/opt/lib', '/usr/lib', | 23 | - default_lib_dirs = libpaths(['/usr/local/lib', '/opt/lib', '/usr/lib', |
23 | - '/opt/local/lib', '/sw/lib'], platform_bits) | 24 | - '/opt/local/lib', '/sw/lib'], platform_bits) |
@@ -29,10 +30,7 @@ Index: numpy-1.13.1/numpy/distutils/system_info.py | |||
29 | - '/opt/local/include', '/sw/include', | 30 | - '/opt/local/include', '/sw/include', |
30 | - '/usr/include/suitesparse'] | 31 | - '/usr/include/suitesparse'] |
31 | - default_src_dirs = ['.', '/usr/local/src', '/opt/src', '/sw/src'] | 32 | - default_src_dirs = ['.', '/usr/local/src', '/opt/src', '/sw/src'] |
32 | + default_lib_dirs = libpaths(['/deadir/lib'], platform_bits) | 33 | - |
33 | + default_include_dirs = ['/deaddir/include'] | ||
34 | + default_src_dirs = ['.', '/deaddir/src'] | ||
35 | |||
36 | - default_x11_lib_dirs = libpaths(['/usr/X11R6/lib', '/usr/X11/lib', | 34 | - default_x11_lib_dirs = libpaths(['/usr/X11R6/lib', '/usr/X11/lib', |
37 | - '/usr/lib'], platform_bits) | 35 | - '/usr/lib'], platform_bits) |
38 | - default_x11_include_dirs = ['/usr/X11R6/include', '/usr/X11/include', | 36 | - default_x11_include_dirs = ['/usr/X11R6/include', '/usr/X11/include', |
@@ -67,8 +65,15 @@ Index: numpy-1.13.1/numpy/distutils/system_info.py | |||
67 | - finally: | 65 | - finally: |
68 | - if tmp is not None: | 66 | - if tmp is not None: |
69 | - tmp.close() | 67 | - tmp.close() |
68 | + default_lib_dirs = libpaths(['/deadir/lib'], platform_bits) | ||
69 | + default_include_dirs = ['/deaddir/include'] | ||
70 | + default_src_dirs = ['.', '/deaddir/src'] | ||
71 | + | ||
70 | + default_x11_lib_dirs = libpaths(['/deaddir/lib'], platform_bits) | 72 | + default_x11_lib_dirs = libpaths(['/deaddir/lib'], platform_bits) |
71 | + default_x11_include_dirs = ['/deaddir/include'] | 73 | + default_x11_include_dirs = ['/deaddir/include'] |
72 | 74 | ||
73 | if os.path.join(sys.prefix, 'lib') not in default_lib_dirs: | 75 | if os.path.join(sys.prefix, 'lib') not in default_lib_dirs: |
74 | default_lib_dirs.insert(0, os.path.join(sys.prefix, 'lib')) | 76 | default_lib_dirs.insert(0, os.path.join(sys.prefix, 'lib')) |
77 | -- | ||
78 | 2.16.1 | ||
79 | |||