[Python-modules-commits] r12775 - in packages/logilab-common/trunk/debian (changelog rules)
morph at users.alioth.debian.org
morph at users.alioth.debian.org
Wed Apr 28 18:06:27 UTC 2010
Date: Wednesday, April 28, 2010 @ 18:06:13
Author: morph
Revision: 12775
* debian/rules
- remove the dummy __init__.py after do has built, else epydoc refuses to
build it
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 2010-04-28 17:56:46 UTC (rev 12774)
+++ packages/logilab-common/trunk/debian/changelog 2010-04-28 18:06:13 UTC (rev 12775)
@@ -7,8 +7,11 @@
- upstream switched from GPLv2 to LPGLv2.1, updating information accordingly
* debian/{control, rules, patches/*}
- removed dpatch, no more needed
+ * debian/rules
+ - remove the dummy __init__.py after do has built, else epydoc refuses to
+ build it
- -- Sandro Tosi <morph at debian.org> Wed, 28 Apr 2010 19:53:35 +0200
+ -- Sandro Tosi <morph at debian.org> Wed, 28 Apr 2010 20:05:17 +0200
logilab-common (0.49.0-1) unstable; urgency=low
Modified: packages/logilab-common/trunk/debian/rules
===================================================================
--- packages/logilab-common/trunk/debian/rules 2010-04-28 17:56:46 UTC (rev 12774)
+++ packages/logilab-common/trunk/debian/rules 2010-04-28 18:06:13 UTC (rev 12775)
@@ -14,26 +14,30 @@
# Python default version number
PYDEF := $(shell pyversions -d -v)
-build:
+build: build-stamp
build-stamp:
dh_testdir
# python module build
NO_SETUPTOOLS=1 python setup.py -q build --build-purelib build/lib
+ # we need this hack because we have to import "logilab.common.pytest"
+ # and for doc generation, but since it's a namespace package,
+ # we need to "simulate" it
+ touch $(CURDIR)/build/lib/logilab/__init__.py
+
# run tests
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
- # we need this hack because we have to import "logilab.common.pytest"
- # but since it's a namespace package, we need to "simulate" it
- touch $(CURDIR)/build/lib/logilab/__init__.py
# use the default python version to select the script dir to run the tests
PYTHONPATH=$(CURDIR)/build/lib/ $(CURDIR)/build/scripts-$(PYDEF)/pytest -t test
- rm -f $(CURDIR)/build/lib/logilab/__init__.py
endif
# build doc
$(MAKE) -C doc
+ # remove dummy file
+ rm -f $(CURDIR)/build/lib/logilab/__init__.py
+
touch build-stamp
clean:
More information about the Python-modules-commits
mailing list