[Python-modules-commits] r17316 - in packages/python-docutils/trunk/debian (rules)
jwilk at users.alioth.debian.org
jwilk at users.alioth.debian.org
Mon Jun 6 20:59:03 UTC 2011
Date: Monday, June 6, 2011 @ 20:59:01
Author: jwilk
Revision: 17316
Run test suite for Python 3.X (but ignore errors for the moment).
Modified:
packages/python-docutils/trunk/debian/rules
Modified: packages/python-docutils/trunk/debian/rules
===================================================================
--- packages/python-docutils/trunk/debian/rules 2011-06-06 20:31:15 UTC (rev 17315)
+++ packages/python-docutils/trunk/debian/rules 2011-06-06 20:59:01 UTC (rev 17316)
@@ -17,8 +17,13 @@
build: build-stamp
build-stamp:
dh_testdir
+ # Build modules for Python 2.X
$(PYTHON) setup.py build
- python3 setup.py build
+ # Build modules for Python 3.X in a separate directory
+ mkdir -p py3k
+ cp -rl docutils/ extras/ tools/ test/ setup.py py3k/
+ cd py3k && python3 setup.py build
+ # Build documentation:
set -e && for dir in $(BUILDHTML_DIRS); do \
PYTHONPATH=.:extras $(PYTHON) tools/buildhtml.py \
--local --config=tools/docutils.conf $$dir \
@@ -29,9 +34,16 @@
--config=tools/docutils.conf $$dir --traceback; \
done
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
+ # Run test suite for Python 2.X:
set -e && for python in $(shell pyversions -r); do \
PYTHONPATH=.:extras $$python test/alltests.py; \
done
+ # Run test suite for Python 3.X:
+ -set -e && cd py3k/build/lib*/ && \
+ for python in $(shell py3versions -r); do \
+ $$python test/alltests.py; \
+ done
+ # FIXME: Don't ignore test failures!
endif
touch build-stamp
@@ -40,7 +52,7 @@
dh_testroot
rm -f build-stamp
$(PYTHON) setup.py clean --all
- python3 setup.py clean --all
+ rm -rf py3k/
find -name '*.py[co]' -delete
rm -f *.html
rm -rf debian/man.tmp
More information about the Python-modules-commits
mailing list