File: rpath.patch

package info (click to toggle)
python-pysam 0.10.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 14,196 kB
  • ctags: 10,087
  • sloc: ansic: 79,627; python: 8,569; sh: 282; makefile: 215; perl: 41
file content (32 lines) | stat: -rw-r--r-- 1,079 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
27
28
29
30
31
32
Description: Disable setting rpath
Author: Afif Elghraoui <afif@debian.org>
Forwarded: not-needed
Last-Update: 2016-03-05
--- python-pysam.orig/cy_build.py
+++ python-pysam/cy_build.py
@@ -57,7 +57,7 @@
             ext._init_func(ext)
 
         if not self.inplace:
-            ext.library_dirs.append(os.path.join(self.build_lib, "pysam"))
+            pass
 
         if sys.platform == 'darwin':
             relative_module_path = ext.name.replace(".", os.sep) + get_config_vars()["SO"]
@@ -85,6 +85,5 @@
             if not ext.extra_link_args:
                 ext.extra_link_args = []
 
-            ext.extra_link_args += ['-Wl,-rpath,$ORIGIN']
                                     
         build_ext.build_extension(self, ext)
--- python-pysam.orig/setup.py
+++ python-pysam/setup.py
@@ -353,7 +353,6 @@
     shared_htslib_sources +
     os_c_files,
     library_dirs=htslib_library_dirs,
-    runtime_library_dirs=htslib_library_dirs,
     include_dirs=["pysam", "."] + include_os + htslib_include_dirs,
     libraries=external_htslib_libraries,
     language="c",