[mate-tweak] 01/03: Use pybuild build system (with PYBUILD_SYSTEM=distutils).

Mike Gabriel sunweaver at debian.org
Mon Aug 24 10:48:22 UTC 2015


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

sunweaver pushed a commit to branch master
in repository mate-tweak.

commit 17ef023be651ca4c519475e44b7d31f8aed8adee
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Mon Aug 24 12:36:17 2015 +0200

    Use pybuild build system (with PYBUILD_SYSTEM=distutils).
---
 debian/control |  2 +-
 debian/rules   | 10 ++++++++--
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index 8c89369..093afbd 100644
--- a/debian/control
+++ b/debian/control
@@ -14,7 +14,7 @@ Standards-Version: 3.9.6
 Homepage: https://bitbucket.org/ubuntu-mate/mate-tweak
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-mate/mate-tweak.git;a=summary
 Vcs-Git: git://anonscm.debian.org/pkg-mate/mate-tweak.git
-X-Python-Version: >= 3.3
+X-Python3-Version: >= 3.3
 
 Package: mate-tweak
 Architecture: all
diff --git a/debian/rules b/debian/rules
index 0d82393..59f5f84 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,13 +1,19 @@
 #!/usr/bin/make -f
 
 DHFLAGS=--parallel
+export PYBUILD_SYSTEM=distutils
 
 %:
-	dh $@ $(DHFLAGS) --with python3
+	dh $@ $(DHFLAGS) --with python3 --buildsystem=pybuild
 
 override_dh_auto_clean:
 	rm -Rf mate_tweak.egg-info/
-	dh_auto_clean
+
+	# dh_auto_clean with pybuild/distutils only works if setup.py is
+	# present
+	if [ -f setup.py ]; then \
+		dh_auto_clean; \
+	fi
 
 get-orig-source:
 	uscan --noconf --force-download --rename --download-current-version --destdir=..

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-tweak.git



More information about the pkg-mate-commits mailing list