[med-svn] [python-pbh5tools] 05/06: Add patch to fix path reference for multiarch-renamed compiled extension

Afif Elghraoui afif at moszumanska.debian.org
Sun Mar 20 10:05:44 UTC 2016


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

afif pushed a commit to branch master
in repository python-pbh5tools.

commit 819e83086953c7db5da2f6a73c0aa081bd2cad9b
Author: Afif Elghraoui <afif at ghraoui.name>
Date:   Sun Mar 20 00:45:22 2016 -0700

    Add patch to fix path reference for multiarch-renamed compiled extension
---
 debian/patches/multiarch-module-path.patch | 15 +++++++++++++++
 debian/patches/series                      |  1 +
 2 files changed, 16 insertions(+)

diff --git a/debian/patches/multiarch-module-path.patch b/debian/patches/multiarch-module-path.patch
new file mode 100644
index 0000000..ba31dff
--- /dev/null
+++ b/debian/patches/multiarch-module-path.patch
@@ -0,0 +1,15 @@
+--- python-pbh5tools.orig/pbh5tools/Indexer.py
++++ python-pbh5tools/pbh5tools/Indexer.py
+@@ -32,10 +32,11 @@
+ import os
+ import numpy
+ import pkg_resources
++import sysconfig
+ 
+ class Indexer(object):
+     def __init__(self):
+-        self.SW_DLL_PATH = os.path.dirname(os.path.abspath(__file__)) + os.path.sep + "ci.so"
++        self.SW_DLL_PATH = os.path.dirname(os.path.abspath(__file__)) + os.path.sep + "ci." + sysconfig.get_config_var('MULTIARCH') + ".so"
+         self._dll        = ctypes.CDLL(self.SW_DLL_PATH)
+ 
+         self._dll.compute_indices.argtypes = [numpy.ctypeslib.ndpointer(dtype = numpy.intc),
diff --git a/debian/patches/series b/debian/patches/series
index 8810b93..a9151d1 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ verbose-testing.patch
 override-test-failure.patch
 ignore-cram-results.patch
 fix-type-in-test.patch
+multiarch-module-path.patch

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



More information about the debian-med-commit mailing list