[Python-modules-commits] [pyrrd] 01/05: Started pybuild conversion

Elena Grandi valhalla-guest at moszumanska.debian.org
Sat Jul 9 14:36:32 UTC 2016


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

valhalla-guest pushed a commit to branch master
in repository pyrrd.

commit eb74309cbd870c3624ba315394aca54e7e1f0f0c
Author: Elena Grandi <valhalla-d at trueelena.org>
Date:   Sat Jul 9 16:06:27 2016 +0200

    Started pybuild conversion
---
 debian/control |  2 +-
 debian/rules   | 63 +++-------------------------------------------------------
 2 files changed, 4 insertions(+), 61 deletions(-)

diff --git a/debian/control b/debian/control
index 2b01ea1..eeb6936 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: python
 Priority: optional
 Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Uploaders: Elena Grandi <valhalla-d at trueelena.org>
-Build-Depends: debhelper (>= 5), python (>= 2.6.6-3~), python-setuptools
+Build-Depends: debhelper (>= 9), python-all (>= 2.6.6-3~), python-setuptools, dh-python, rrdtool, python-rrdtool
 Standards-Version: 3.9.4
 Homepage: http://code.google.com/p/pyrrd/
 Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/pyrrd.git
diff --git a/debian/rules b/debian/rules
index 39d51c3..55f1951 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,63 +1,6 @@
 #!/usr/bin/make -f
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+export PYBUILD_NAME=pyrrd
 
-ORIGFILES = PyRRD.egg-info/SOURCES.txt
-
-build: build-arch build-indep
-build-arch: build-stamp
-build-indep: build-stamp
-build: build-stamp
-
-build-stamp:
-	dh_testdir
-
-	for f in $(ORIGFILES) ; do [ -e $$f.d-r-orig ] || cp -p $$f $$f.d-r-orig ; done
-
-	python setup.py build
-
-	touch $@
-
-clean: 
-	dh_testdir
-	dh_testroot
-	[ ! -d build ] || rm -rf build
-	
-	python setup.py clean
-	for f in $(ORIGFILES) ; do [ ! -e $$f.d-r-orig ] || mv $$f.d-r-orig $$f ; done
-	dh_clean ez_setup.pyc build-stamp
-
-	rm pyrrd/*.pyc
-	rm pyrrd/util/*.pyc
-	rm CHECK_THIS_BEFORE_UPLOAD.txt
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_clean -k 
-
-	python setup.py install --single-version-externally-managed --root=$(CURDIR)/debian/python-pyrrd
-	- PYTHONPATH=build/lib/ python test/test_all.py
-
-
-# Build architecture-dependent files here.
-binary-arch: build install
-
-# Build architecture-independent files here.
-binary-indep: build install
-	dh_testdir
-	dh_testroot
-	dh_installchangelogs docs/HISTORY.txt
-	dh_installdocs README docs/*
-	dh_installexamples examples/* -Xpng
-	dh_python2
-	dh_compress -X.py
-	dh_fixperms
-	dh_gencontrol
-	dh_installdeb
-	dh_md5sums
-	dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
+%:
+	dh $@ --with python2 --buildsystem=pybuild

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pyrrd.git



More information about the Python-modules-commits mailing list