[Python-modules-commits] r22566 - in packages/python-graph/trunk/debian (3 files)
morph at users.alioth.debian.org
morph at users.alioth.debian.org
Sat Aug 25 19:59:42 UTC 2012
Date: Saturday, August 25, 2012 @ 19:59:41
Author: morph
Revision: 22566
* debian/{control, rules}
- build, test and install for all supported python2.x versions
Modified:
packages/python-graph/trunk/debian/changelog
packages/python-graph/trunk/debian/control
packages/python-graph/trunk/debian/rules
Modified: packages/python-graph/trunk/debian/changelog
===================================================================
--- packages/python-graph/trunk/debian/changelog 2012-08-25 19:51:44 UTC (rev 22565)
+++ packages/python-graph/trunk/debian/changelog 2012-08-25 19:59:41 UTC (rev 22566)
@@ -11,8 +11,10 @@
- run tests in the right target, honoring 'nocheck'
* debian/patches/30_pass_python_to_makefile.patch
- pass the python interpreter when running tests
+ * debian/{control, rules}
+ - build, test and install for all supported python2.x versions
- -- Sandro Tosi <morph at debian.org> Sat, 25 Aug 2012 21:50:56 +0200
+ -- Sandro Tosi <morph at debian.org> Sat, 25 Aug 2012 21:59:07 +0200
python-graph (1.8.1-1) unstable; urgency=low
Modified: packages/python-graph/trunk/debian/control
===================================================================
--- packages/python-graph/trunk/debian/control 2012-08-25 19:51:44 UTC (rev 22565)
+++ packages/python-graph/trunk/debian/control 2012-08-25 19:59:41 UTC (rev 22566)
@@ -4,7 +4,7 @@
Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
Uploaders: Sandro Tosi <morph at debian.org>
Build-Depends: debhelper (>= 7.0.50~)
-Build-Depends-Indep: python-support, python (>= 2.5.3-1~), python-epydoc, python-setuptools, python-pydot
+Build-Depends-Indep: python-support, python-all (>= 2.5.3-1~), python-epydoc, python-setuptools, python-pydot
Standards-Version: 3.9.3
Homepage: http://code.google.com/p/python-graph/
Vcs-Svn: svn://svn.debian.org/svn/python-modules/packages/python-graph/trunk/
Modified: packages/python-graph/trunk/debian/rules
===================================================================
--- packages/python-graph/trunk/debian/rules 2012-08-25 19:51:44 UTC (rev 22565)
+++ packages/python-graph/trunk/debian/rules 2012-08-25 19:59:41 UTC (rev 22566)
@@ -1,23 +1,35 @@
#!/usr/bin/make -f
# -*- makefile -*-
+PY2VERS := $(shell pyversions -s)
+
%:
dh $@
override_dh_auto_build:
- cd core ; python setup.py build
+ set -e ; \
+ for python in $(PY2VERS); do \
+ cd core ; $$python setup.py build ; cd .. ; \
+ done
$(MAKE) docs
override_dh_auto_test:
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
- # run tests
- $(MAKE) tests PYTHONPATH=../$$(ls -d core/build/lib*/)
+ set -e ; \
+ for python in $(PY2VERS); do \
+ # retrive the lib path \
+ LIB=$$($$python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print b.build_purelib") ; \
+ $(MAKE) tests PYTHON=$$python PYTHONPATH=../core/$$LIB ; \
+ done
endif
override_dh_auto_install:
- cd core ; python setup.py install --root=$(CURDIR)/debian/python-pygraph --install-layout=deb
- cd dot ; python setup.py install --root=$(CURDIR)/debian/python-pygraph --install-layout=deb
+ set -e ; \
+ for python in $(PY2VERS); do \
+ cd core ; $$python setup.py install --root=$(CURDIR)/debian/python-pygraph --install-layout=deb ; cd .. ; \
+ cd dot ; $$python setup.py install --root=$(CURDIR)/debian/python-pygraph --install-layout=deb ; cd .. ; \
+ done
override_dh_installdocs:
dh_installdocs docs
More information about the Python-modules-commits
mailing list