[Python-modules-commits] [python-schroot] 01/03: Simplify debian/rules.
Brian May
bam at moszumanska.debian.org
Mon Oct 26 03:56:09 UTC 2015
This is an automated email from the git hooks/post-receive script.
bam pushed a commit to branch master
in repository python-schroot.
commit b587b5213fa5471959921d05cc6c51989d27f807
Author: Brian May <bam at debian.org>
Date: Mon Oct 26 14:45:37 2015 +1100
Simplify debian/rules.
---
debian/changelog | 6 ++++++
debian/control | 1 +
debian/rules | 32 ++------------------------------
3 files changed, 9 insertions(+), 30 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 46fe7aa..b9b56a6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+python-schroot (0.4-3) UNRELEASED; urgency=medium
+
+ * Simplify debian/rules.
+
+ -- Brian May <bam at debian.org> Mon, 26 Oct 2015 14:47:45 +1100
+
python-schroot (0.4-2) unstable; urgency=medium
* Fix debian/watch.
diff --git a/debian/control b/debian/control
index c2d494a..54a1bc4 100644
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,7 @@ Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.
Uploaders: Paul Tagliamonte <paultag at debian.org>, Brian May <bam at debian.org>
Build-Depends:
debhelper (>= 9),
+ dh-python,
python-all,
python3-all,
python-setuptools,
diff --git a/debian/rules b/debian/rules
index 855b3a3..65f03f2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,34 +1,6 @@
#!/usr/bin/make -f
-PY2_PACKAGE_NAME = python-schroot
-PY3_PACKAGE_NAME = python3-schroot
-
-PYVERS = $(shell pyversions -r)
-PY3VERS = $(shell py3versions -r)
+export PYBUILD_NAME=schroot
%:
- dh $@ --with python2,python3
-
-override_dh_auto_clean:
- dh_auto_clean
- rm -rvf ./*.egg-info ./build
-
-override_dh_auto_build:
- set -xe; \
- for py in $(PYVERS) $(PY3VERS); do \
- $$py setup.py build; \
- done
-
-override_dh_auto_install:
- set -xe; \
- for py in $(PYVERS); do \
- $$py setup.py install --skip-build --root debian/$(PY2_PACKAGE_NAME) \
- --install-layout deb; \
- done
- set -xe; \
- for py in $(PY3VERS); do \
- $$py setup.py install --skip-build --root debian/$(PY3_PACKAGE_NAME) \
- --install-layout deb; \
- done
- # Remove me when dh_python2 can handle this file
- rm -vf debian/*/usr/lib/python*/*-packages/*.egg-info/SOURCES.txt
+ dh $@ --with python2,python3 --buildsystem=pybuild
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-schroot.git
More information about the Python-modules-commits
mailing list