[ismrmrd] 85/129: d/rules: add rule for python pkg
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Wed Jan 14 20:00:22 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository ismrmrd.
commit d96736da839a123e50086c02c830c052711efe2b
Author: Ghislain Vaillant <ghisvail at gmail.com>
Date: Wed May 14 17:43:33 2014 +0100
d/rules: add rule for python pkg
---
debian/rules | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/debian/rules b/debian/rules
index 8480962..00fe960 100644
--- a/debian/rules
+++ b/debian/rules
@@ -10,8 +10,11 @@ SOURCEPKG=ismrmrd
BINARYPKG=lib$(SOURCEPKG)0
APIDOCPKG=lib$(SOURCEPKG)-dev-doc
+PYTHON=$(shell pyversions -d)
+PYTHONDIR=$(shell /bin/ls -d /usr/lib/$(PYTHON)/*-packages)
+
%:
- dh $@ -- --builddirectory=$(BUILDDIR) --buildsystem=cmake
+ dh $@ --buildsystem=cmake --builddirectory=$(BUILDDIR) --parallel
override_dh_auto_build-indep:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
@@ -30,4 +33,9 @@ endif
override_dh_auto_install:
dh_auto_install
- dh_python2 --no-guessing-versions
+
+ : I: install SWIG Python bindings for the current Python verion
+ mkdir -p debian/python-${SOURCEPKG}$(PYTHONDIR)
+ install -m 0644 debian/tmp/usr/ismrmrd/python/ismrmrd.py \
+ debian/tmp/usr/ismrmrd/python/_ismrmrd.so \
+ debian/python-${SOURCEPKG}$(PYTHONDIR)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ismrmrd.git
More information about the debian-science-commits
mailing list