[Reproducible-builds] [dh-python] 11/183: test 302, 303: adjust to work with multiple versions
Jérémy Bobbio
lunar at moszumanska.debian.org
Fri Sep 19 15:30:13 UTC 2014
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch pu/reproducible_builds
in repository dh-python.
commit f503c821251bbdaeedb6249ed81c95e5f68f6a3f
Author: Piotr Ożarowski <piotr at debian.org>
Date: Sat Jun 29 14:10:10 2013 +0200
test 302,303: adjust to work with multiple versions
---
tests/t302/debian/rules | 8 ++++++--
tests/t303/debian/rules | 6 +++++-
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/tests/t302/debian/rules b/tests/t302/debian/rules
index 7d1b5e5..f76928c 100755
--- a/tests/t302/debian/rules
+++ b/tests/t302/debian/rules
@@ -10,12 +10,16 @@ override_dh_install:
/usr/lib/python3-foo/
DH_VERBOSE=1 ../../dh_python3
+comma:=,
+empty:=
+space:= $(empty) $(empty)
+PYTHONS=$(subst $(comma),$(space),$(DEBPYTHON3_SUPPORTED))
override_dh_auto_build:
- for ver in $(DEBPYTHON3_SUPPORTED); do\
+ for ver in $(PYTHONS); do\
python$$ver setup.py build; done
override_dh_auto_install:
- for ver in $(DEBPYTHON3_SUPPORTED); do\
+ for ver in $(PYTHONS); do\
python$$ver setup.py install --root=debian/python3-foo;\
done
diff --git a/tests/t303/debian/rules b/tests/t303/debian/rules
index 49b1bc3..8f0c8be 100755
--- a/tests/t303/debian/rules
+++ b/tests/t303/debian/rules
@@ -10,8 +10,12 @@ override_dh_install:
override_dh_auto_build:
override_dh_auto_test:
+comma:=,
+empty:=
+space:= $(empty) $(empty)
+PYTHONS=$(subst $(comma),$(space),$(DEBPYTHON3_SUPPORTED))
override_dh_auto_install:
- set -e; for ver in $(DEBPYTHON3_SUPPORTED); do\
+ set -e; for ver in $(PYTHONS); do\
mkdir -p debian/python3-foo/usr/lib/python$$ver/site-packages/;\
echo "print('foo')" > debian/python3-foo/usr/lib/python$$ver/site-packages/foo.py;\
done
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dh-python.git
More information about the Reproducible-builds
mailing list