File: rpath.patch

package info (click to toggle)
netcdf4-python 1.7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,604 kB
  • sloc: python: 6,057; ansic: 854; makefile: 15; sh: 2
file content (26 lines) | stat: -rw-r--r-- 959 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Description: Don't set RPATH in libraries.
Author: Bas Couwenberg <sebastic@debian.org>
Forwarded: not-needed

--- a/setup.py
+++ b/setup.py
@@ -371,11 +371,6 @@ else:
         lib_dirs.append(curl_libdir)
         inc_dirs.append(curl_incdir)
 
-if sys.platform == 'win32' or sys.platform == 'cygwin':
-    runtime_lib_dirs = []
-else:
-    runtime_lib_dirs = lib_dirs
-
 # Do not require numpy for just querying the package
 # Taken from the h5py setup file.
 if any('--' + opt in sys.argv for opt in Distribution.display_option_names +
@@ -461,7 +456,6 @@ if 'sdist' not in sys.argv[1:] and 'clea
                              libraries=libs,
                              library_dirs=lib_dirs,
                              include_dirs=include_dirs,
-                             runtime_library_dirs=runtime_lib_dirs,
                              py_limited_api=USE_PY_LIMITED_API)]
     # set language_level directive to 3
     for e in ext_modules: