[Python-modules-commits] r7437 - in packages/logilab-common/trunk/debian (changelog rules)
morph at users.alioth.debian.org
morph at users.alioth.debian.org
Wed Feb 4 21:51:15 UTC 2009
Date: Wednesday, February 4, 2009 @ 21:51:14
Author: morph
Revision: 7437
* debian/rules
- added test execution at build-time
- using --root at install-time
Modified:
packages/logilab-common/trunk/debian/changelog
packages/logilab-common/trunk/debian/rules
Modified: packages/logilab-common/trunk/debian/changelog
===================================================================
--- packages/logilab-common/trunk/debian/changelog 2009-02-04 19:53:29 UTC (rev 7436)
+++ packages/logilab-common/trunk/debian/changelog 2009-02-04 21:51:14 UTC (rev 7437)
@@ -7,8 +7,11 @@
- removed path to debian package and command to execute after download
* debian/copyright
- updated upstream copyright information
+ * debian/rules
+ - added test execution at build-time
+ - using --root at install-time
- -- Sandro Tosi <morph at debian.org> Sun, 01 Feb 2009 18:08:57 +0100
+ -- Sandro Tosi <morph at debian.org> Wed, 04 Feb 2009 22:42:07 +0100
logilab-common (0.37.2-2) unstable; urgency=low
Modified: packages/logilab-common/trunk/debian/rules
===================================================================
--- packages/logilab-common/trunk/debian/rules 2009-02-04 19:53:29 UTC (rev 7436)
+++ packages/logilab-common/trunk/debian/rules 2009-02-04 21:51:14 UTC (rev 7437)
@@ -18,6 +18,11 @@
# python module build
python setup.py -q build
+ # run tests
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+ -PYTHONPATH=build/lib/ build/scripts-2.5/pytest
+endif
+
# build doc
$(MAKE) -C doc
@@ -42,9 +47,9 @@
dh_clean -k
dh_installdirs
- python setup.py -q install --no-compile --prefix=debian/python-logilab-common/usr/ --install-headers=debian/python-logilab-common/usr/include/ --install-scripts=debian/python-logilab-common/usr/bin
+ python setup.py -q install --no-compile --root=debian/python-logilab-common/ --install-headers=usr/include/ --install-scripts=usr/bin/
- # remove test directory (installed in in the doc directory)
+ # remove test directory
rm -rf debian/python-logilab-common/usr/lib/python*/site-packages/logilab/common/test
# Build architecture-independent files here.
@@ -69,4 +74,3 @@
binary: binary-indep
.PHONY: build clean binary binary-indep binary-arch
-
More information about the Python-modules-commits
mailing list