[Python-modules-commits] r19750 - in packages/circuits/trunk/debian (rules)
eriol-guest at users.alioth.debian.org
eriol-guest at users.alioth.debian.org
Mon Dec 26 23:51:29 UTC 2011
Date: Monday, December 26, 2011 @ 23:51:28
Author: eriol-guest
Revision: 19750
Don't install tests package to not pollute global namespace
Modified:
packages/circuits/trunk/debian/rules
Modified: packages/circuits/trunk/debian/rules
===================================================================
--- packages/circuits/trunk/debian/rules 2011-12-26 22:51:31 UTC (rev 19749)
+++ packages/circuits/trunk/debian/rules 2011-12-26 23:51:28 UTC (rev 19750)
@@ -7,18 +7,20 @@
dh $(@) --with python2,python3,sphinxdoc -Spython_distutils
override_dh_auto_build:
- dh_auto_build
-
set -e -x; \
- for python3 in $(PY3VERS); do \
- $$python3 setup.py build; \
+ for python in $(PY2VERS) $(PY3VERS); do \
+ $$python setup.py build; \
done
rm -rf docs/build/html
PYTHONPATH=. sphinx-build -N -bhtml docs/source docs/build/html
override_dh_auto_install:
- dh_auto_install
+ set -e -x; \
+ for python2 in $(PY2VERS); do \
+ $$python2 setup.py install --skip-build --root debian/python-circuits \
+ --install-layout deb; \
+ done
set -e -x; \
for python3 in $(PY3VERS); do \
@@ -26,6 +28,8 @@
--install-layout deb; \
done
+ rm -rf debian/python*-circuits/usr/lib/python*/dist-packages/tests
+
# Disabled tests because they need pytest >= 2.0.0 which is not in Debian yet.
# override_dh_auto_test:
# ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
More information about the Python-modules-commits
mailing list