diff options
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 | 19 |
1 files changed, 9 insertions, 10 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 cdb6a473d2..9f5f25f9b5 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 | |||
| @@ -8,16 +8,15 @@ Subject: [PATCH] Don't search /usr and so on for libraries by default to | |||
| 8 | Upstream-Status: Inappropriate (As the code stands, this is a hack) | 8 | Upstream-Status: Inappropriate (As the code stands, this is a hack) |
| 9 | Signed-off-by: Ross Burton <ross.burton@intel.com> | 9 | Signed-off-by: Ross Burton <ross.burton@intel.com> |
| 10 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | 10 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
| 11 | |||
| 12 | --- | 11 | --- |
| 13 | numpy/distutils/system_info.py | 42 ++++------------------------------ | 12 | numpy/distutils/system_info.py | 42 +++++----------------------------- |
| 14 | 1 file changed, 5 insertions(+), 37 deletions(-) | 13 | 1 file changed, 6 insertions(+), 36 deletions(-) |
| 15 | 14 | ||
| 16 | diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py | 15 | diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py |
| 17 | index 3a6a7b2..6c2c3da 100644 | 16 | index 82e864a..135246d 100644 |
| 18 | --- a/numpy/distutils/system_info.py | 17 | --- a/numpy/distutils/system_info.py |
| 19 | +++ b/numpy/distutils/system_info.py | 18 | +++ b/numpy/distutils/system_info.py |
| 20 | @@ -309,45 +309,13 @@ if sys.platform == 'win32': | 19 | @@ -323,44 +323,14 @@ if sys.platform == 'win32': |
| 21 | add_system_root(os.path.join(conda_dir, 'Library')) | 20 | add_system_root(os.path.join(conda_dir, 'Library')) |
| 22 | 21 | ||
| 23 | else: | 22 | else: |
| @@ -25,7 +24,7 @@ index 3a6a7b2..6c2c3da 100644 | |||
| 25 | - '/opt/local/lib', '/sw/lib'], platform_bits) | 24 | - '/opt/local/lib', '/sw/lib'], platform_bits) |
| 26 | default_runtime_dirs = [] | 25 | default_runtime_dirs = [] |
| 27 | - default_include_dirs = ['/usr/local/include', | 26 | - default_include_dirs = ['/usr/local/include', |
| 28 | - '/opt/include', '/usr/include', | 27 | - '/opt/include', |
| 29 | - # path of umfpack under macports | 28 | - # path of umfpack under macports |
| 30 | - '/opt/local/include/ufsparse', | 29 | - '/opt/local/include/ufsparse', |
| 31 | - '/opt/local/include', '/sw/include', | 30 | - '/opt/local/include', '/sw/include', |
| @@ -34,8 +33,7 @@ index 3a6a7b2..6c2c3da 100644 | |||
| 34 | - | 33 | - |
| 35 | - default_x11_lib_dirs = libpaths(['/usr/X11R6/lib', '/usr/X11/lib', | 34 | - default_x11_lib_dirs = libpaths(['/usr/X11R6/lib', '/usr/X11/lib', |
| 36 | - '/usr/lib'], platform_bits) | 35 | - '/usr/lib'], platform_bits) |
| 37 | - default_x11_include_dirs = ['/usr/X11R6/include', '/usr/X11/include', | 36 | - default_x11_include_dirs = ['/usr/X11R6/include', '/usr/X11/include'] |
| 38 | - '/usr/include'] | ||
| 39 | - | 37 | - |
| 40 | - if os.path.exists('/usr/lib/X11'): | 38 | - if os.path.exists('/usr/lib/X11'): |
| 41 | - globbed_x11_dir = glob('/usr/lib/*/libX11.so') | 39 | - globbed_x11_dir = glob('/usr/lib/*/libX11.so') |
| @@ -59,15 +57,16 @@ index 3a6a7b2..6c2c3da 100644 | |||
| 59 | - # gcc supports the "-print-multiarch" option | 57 | - # gcc supports the "-print-multiarch" option |
| 60 | - default_x11_lib_dirs += [os.path.join("/usr/lib/", triplet)] | 58 | - default_x11_lib_dirs += [os.path.join("/usr/lib/", triplet)] |
| 61 | - default_lib_dirs += [os.path.join("/usr/lib/", triplet)] | 59 | - default_lib_dirs += [os.path.join("/usr/lib/", triplet)] |
| 60 | |||
| 62 | + default_lib_dirs = libpaths(['/deadir/lib'], platform_bits) | 61 | + default_lib_dirs = libpaths(['/deadir/lib'], platform_bits) |
| 63 | + default_include_dirs = ['/deaddir/include'] | 62 | + default_include_dirs = ['/deaddir/include'] |
| 64 | + default_src_dirs = ['.', '/deaddir/src'] | 63 | + default_src_dirs = ['.', '/deaddir/src'] |
| 65 | 64 | + | |
| 66 | + default_x11_lib_dirs = libpaths(['/deaddir/lib'], platform_bits) | 65 | + default_x11_lib_dirs = libpaths(['/deaddir/lib'], platform_bits) |
| 67 | + default_x11_include_dirs = ['/deaddir/include'] | 66 | + default_x11_include_dirs = ['/deaddir/include'] |
| 68 | 67 | ||
| 69 | if os.path.join(sys.prefix, 'lib') not in default_lib_dirs: | 68 | if os.path.join(sys.prefix, 'lib') not in default_lib_dirs: |
| 70 | default_lib_dirs.insert(0, os.path.join(sys.prefix, 'lib')) | 69 | default_lib_dirs.insert(0, os.path.join(sys.prefix, 'lib')) |
| 71 | -- | 70 | -- |
| 72 | 2.17.1 | 71 | 2.25.1 |
| 73 | 72 | ||
