[med-svn] [python-pysam] 02/02: provide LD_LIBRARY_PATH for run time test to avoid RPATH setting

Andreas Tille tille at debian.org
Wed Jan 25 12:55:27 UTC 2017


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository python-pysam.

commit cd8ba39c2a2b3182decd87fcbc150595e1a6aee2
Author: Andreas Tille <tille at debian.org>
Date:   Wed Jan 25 13:54:38 2017 +0100

    provide LD_LIBRARY_PATH for run time test to avoid RPATH setting
---
 debian/changelog           |  1 +
 debian/patches/rpath.patch | 19 -------------------
 debian/rules               |  8 +++++---
 3 files changed, 6 insertions(+), 22 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index f42253e..e886b01 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ python-pysam (0.10.0+ds-1) UNRELEASED; urgency=medium
 
   [ Andreas Tille ]
   * d/rules: Remove redundant get-orig-source target
+  * provide LD_LIBRARY_PATH for run time test to avoid RPATH setting
 
  -- Afif Elghraoui <afif at debian.org>  Mon, 23 Jan 2017 19:13:47 -0800
 
diff --git a/debian/patches/rpath.patch b/debian/patches/rpath.patch
index 44a34aa..b330796 100644
--- a/debian/patches/rpath.patch
+++ b/debian/patches/rpath.patch
@@ -4,15 +4,6 @@ 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 = []
@@ -20,13 +11,3 @@ Last-Update: 2016-03-05
 -            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",
diff --git a/debian/rules b/debian/rules
index 838cc31..cdddf03 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,12 +12,12 @@ HTSLIBDIR  := /usr/lib/$(DEB_HOST_MULTIARCH)
 export HTSLIB_LIBRARY_DIR=$(HTSLIBDIR)
 export HTSLIB_INCLUDE_DIR=/usr/include
 
-export PYBUILD_TEST_NOSE=1
+#export PYBUILD_TEST_NOSE=1
 # pybuild calls nosetests as `python{version} -m nose tests`
 #
 # The "tests" argument (passed by pybuild as shown above) fails,
 # so don't pass anything:
-export PYBUILD_TEST_ARGS=
+#export PYBUILD_TEST_ARGS=
 # This is how we pass parameters to nose without command-line flags
 export NOSE_WHERE=$(CURDIR)/tests
 export NOSE_VERBOSE=2
@@ -33,7 +33,9 @@ override_dh_install: clean-tests
 	dh_install -Xtest.gtf.gz
 
 override_dh_auto_test: pysam_data.all cbcf_data.all
-	dh_auto_test
+	#dh_auto_test
+	dh_auto_test -- --test --system=custom \
+			--test-args='set -x; echo "{build_dir}/pysam {interpreter}"; LD_LIBRARY_PATH={build_dir}/pysam {interpreter} -m nose'
 
 override_dh_auto_clean:
 	dh_auto_clean

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-pysam.git



More information about the debian-med-commit mailing list