[med-svn] [SCM] python-csb branch, master, updated. 657c30c2829547c8491b83ce531be98586b27b65
Tomas Di Domenico
tdido at tdido.com.ar
Sun Dec 9 21:26:17 UTC 2012
The following commit has been merged in the master branch:
commit 16d3a982f200217f57b8a78c84da24863a51a16f
Author: Tomas Di Domenico <tdido at tdido.com.ar>
Date: Sun Dec 9 15:07:03 2012 +0100
Changed rules to generate python3 binary package
diff --git a/debian/rules b/debian/rules
index 18bcae9..cf2e807 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,3 +1,38 @@
#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+PYVERS := $(shell pyversions -r)
+PY3VERS := $(shell py3versions -r)
+
%:
- dh $@ --with python2
+ dh $@ --with python2,python3
+
+.PHONY: override_dh_auto_build
+override_dh_auto_build:
+ set -e; \
+ for py in $(PYVERS) $(PY3VERS); do \
+ $$py -B setup.py build; \
+ done
+
+.PHONY: override_dh_auto_clean
+override_dh_auto_clean:
+ set -e; \
+ for py in $(PYVERS) $(PY3VERS); do \
+ $$py -B setup.py clean; \
+ rm -rf build; \
+ done
+
+.PHONY: override_dh_auto_install
+override_dh_auto_install:
+ set -e; \
+ for py in $(PYVERS); do \
+ $$py -B setup.py install --skip-build --root debian/python-csb \
+ --install-layout deb; \
+ done
+ set -e; \
+ for py in $(PY3VERS); do \
+ $$py -B setup.py install --skip-build --root debian/python3-csb \
+ --install-layout deb; \
+ done
--
Packaging of python-csb
More information about the debian-med-commit
mailing list