summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python-numpy
diff options
context:
space:
mode:
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>2015-12-10 13:27:16 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-16 12:12:17 +0000
commit4e653b52125d0979504f873ce829e1c8681518cf (patch)
tree92eb5aea23744347ac50b4400adb15ed6aa41935 /meta/recipes-devtools/python/python-numpy
parent90b72129726fea6723abb0bedf2e65887d02b60a (diff)
downloadpoky-4e653b52125d0979504f873ce829e1c8681518cf.tar.gz
python-numpy: update to 1.10.1
LICENSE checksum has changed due to updated copyright years (From OE-Core rev: 3c3932f3560c898e32287c8733b61180685ee539) 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/python-numpy')
-rw-r--r--meta/recipes-devtools/python/python-numpy/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch (renamed from meta/recipes-devtools/python/python-numpy/no-host-paths.patch)33
1 files changed, 27 insertions, 6 deletions
diff --git a/meta/recipes-devtools/python/python-numpy/no-host-paths.patch b/meta/recipes-devtools/python/python-numpy/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch
index d745036806..5b134edf07 100644
--- a/meta/recipes-devtools/python/python-numpy/no-host-paths.patch
+++ b/meta/recipes-devtools/python/python-numpy/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch
@@ -1,18 +1,27 @@
1Don't search /usr and so on for libraries by default to avoid host contamination. 1From cc2ce6d8b6a3e6e2c8874896c10897034a80cd4f Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Thu, 10 Dec 2015 13:20:30 +0200
4Subject: [PATCH] Don't search /usr and so on for libraries by default to avoid
5 host contamination.
2 6
3Upstream-Status: Inappropriate (As the code stands, this is a hack) 7Upstream-Status: Inappropriate (As the code stands, this is a hack)
4Signed-off-by: Ross Burton <ross.burton@intel.com> 8Signed-off-by: Ross Burton <ross.burton@intel.com>
9Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
10---
11 numpy/distutils/system_info.py | 50 +++++-------------------------------------
12 1 file changed, 6 insertions(+), 44 deletions(-)
5 13
6diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py 14diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py
7index bac90fb..a63d796 100644 15index 9dd48e2..80e197a 100644
8--- a/numpy/distutils/system_info.py 16--- a/numpy/distutils/system_info.py
9+++ b/numpy/distutils/system_info.py 17+++ b/numpy/distutils/system_info.py
10@@ -191,41 +191,12 @@ if sys.platform == 'win32': 18@@ -204,51 +204,13 @@ if sys.platform == 'win32':
11 default_x11_lib_dirs = [] 19 default_x11_lib_dirs = []
12 default_x11_include_dirs = [] 20 default_x11_include_dirs = []
13 else: 21 else:
14- default_lib_dirs = libpaths(['/usr/local/lib', '/opt/lib', '/usr/lib', 22- default_lib_dirs = libpaths(['/usr/local/lib', '/opt/lib', '/usr/lib',
15- '/opt/local/lib', '/sw/lib'], platform_bits) 23- '/opt/local/lib', '/sw/lib'], platform_bits)
24 default_runtime_dirs = []
16- default_include_dirs = ['/usr/local/include', 25- default_include_dirs = ['/usr/local/include',
17- '/opt/include', '/usr/include', 26- '/opt/include', '/usr/include',
18- # path of umfpack under macports 27- # path of umfpack under macports
@@ -35,17 +44,26 @@ index bac90fb..a63d796 100644
35- '/usr/include/X11']) 44- '/usr/include/X11'])
36- 45-
37- import subprocess as sp 46- import subprocess as sp
47- tmp = None
38- try: 48- try:
49- # Explicitly open/close file to avoid ResourceWarning when
50- # tests are run in debug mode Python 3.
51- tmp = open(os.devnull, 'w')
39- p = sp.Popen(["gcc", "-print-multiarch"], stdout=sp.PIPE, 52- p = sp.Popen(["gcc", "-print-multiarch"], stdout=sp.PIPE,
40- stderr=open(os.devnull, 'w')) 53- stderr=tmp)
41- except OSError: 54- except (OSError, DistutilsError):
42- pass # gcc is not installed 55- # OSError if gcc is not installed, or SandboxViolation (DistutilsError
56- # subclass) if an old setuptools bug is triggered (see gh-3160).
57- pass
43- else: 58- else:
44- triplet = str(p.communicate()[0].decode().strip()) 59- triplet = str(p.communicate()[0].decode().strip())
45- if p.returncode == 0: 60- if p.returncode == 0:
46- # gcc supports the "-print-multiarch" option 61- # gcc supports the "-print-multiarch" option
47- default_x11_lib_dirs += [os.path.join("/usr/lib/", triplet)] 62- default_x11_lib_dirs += [os.path.join("/usr/lib/", triplet)]
48- default_lib_dirs += [os.path.join("/usr/lib/", triplet)] 63- default_lib_dirs += [os.path.join("/usr/lib/", triplet)]
64- finally:
65- if tmp is not None:
66- tmp.close()
49+ default_lib_dirs = libpaths(['/deadir/lib'], platform_bits) 67+ default_lib_dirs = libpaths(['/deadir/lib'], platform_bits)
50+ default_include_dirs = ['/deaddir/include'] 68+ default_include_dirs = ['/deaddir/include']
51+ default_src_dirs = ['.', '/deaddir/src'] 69+ default_src_dirs = ['.', '/deaddir/src']
@@ -55,3 +73,6 @@ index bac90fb..a63d796 100644
55 73
56 if os.path.join(sys.prefix, 'lib') not in default_lib_dirs: 74 if os.path.join(sys.prefix, 'lib') not in default_lib_dirs:
57 default_lib_dirs.insert(0, os.path.join(sys.prefix, 'lib')) 75 default_lib_dirs.insert(0, os.path.join(sys.prefix, 'lib'))
76--
772.6.2
78