Andrew Geissler | d221e03 | 2020-07-10 16:13:21 -0500 | [diff] [blame^] | 1 | From 364fd0906efa349ea44a761820408dcf6b2b8726 Mon Sep 17 00:00:00 2001 |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
| 3 | Date: Tue, 29 Jan 2019 17:08:32 +0800 |
| 4 | Subject: [PATCH] cross compiling support |
| 5 | |
| 6 | Remove useless dirs |
| 7 | |
| 8 | Upstream-Status: Inappropriate [oe specific] |
| 9 | |
| 10 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
Andrew Geissler | d221e03 | 2020-07-10 16:13:21 -0500 | [diff] [blame^] | 11 | Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 12 | --- |
| 13 | setup_build.py | 4 ---- |
| 14 | setup_configure.py | 2 +- |
| 15 | 2 files changed, 1 insertion(+), 5 deletions(-) |
| 16 | |
| 17 | diff --git a/setup_build.py b/setup_build.py |
Andrew Geissler | d221e03 | 2020-07-10 16:13:21 -0500 | [diff] [blame^] | 18 | index c0e9a28c..ffd3bef7 100644 |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 19 | --- a/setup_build.py |
| 20 | +++ b/setup_build.py |
Andrew Geissler | d221e03 | 2020-07-10 16:13:21 -0500 | [diff] [blame^] | 21 | @@ -55,10 +55,6 @@ if sys.platform.startswith('win'): |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 22 | ('_HDF5USEDLL_', None), |
| 23 | ('H5_BUILT_AS_DYNAMIC_LIB', None) |
| 24 | ]) |
| 25 | -else: |
| 26 | - FALLBACK_PATHS['include_dirs'].extend(['/opt/local/include', '/usr/local/include']) |
| 27 | - FALLBACK_PATHS['library_dirs'].extend(['/opt/local/lib', '/usr/local/lib']) |
| 28 | - |
| 29 | |
| 30 | class h5py_build_ext(build_ext): |
| 31 | |
| 32 | diff --git a/setup_configure.py b/setup_configure.py |
Andrew Geissler | d221e03 | 2020-07-10 16:13:21 -0500 | [diff] [blame^] | 33 | index 5576775e..75f4141e 100644 |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 34 | --- a/setup_configure.py |
| 35 | +++ b/setup_configure.py |
Andrew Geissler | d221e03 | 2020-07-10 16:13:21 -0500 | [diff] [blame^] | 36 | @@ -206,7 +206,7 @@ def autodetect_version(hdf5_dir=None): |
| 37 | default_path = 'libhdf5.so' |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 38 | regexp = re.compile(r'^libhdf5.so') |
| 39 | |
| 40 | - libdirs = ['/usr/local/lib', '/opt/local/lib'] |
| 41 | + libdirs = [] |
| 42 | try: |
| 43 | if pkgconfig.exists("hdf5"): |
| 44 | libdirs.extend(pkgconfig.parse("hdf5")['library_dirs']) |
| 45 | -- |
Andrew Geissler | d221e03 | 2020-07-10 16:13:21 -0500 | [diff] [blame^] | 46 | 2.17.1 |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 47 | |