debian/rules: globally export MPLCONFIGDIR and HOME so they would be in effect also for unittests resolving FTBFS on build boxes.

This commit is contained in:
Yaroslav Halchenko
2012-05-21 13:14:28 -04:00
parent ae0e6fd114
commit 6271947a93
2 changed files with 17 additions and 1 deletions
+7
View File
@@ -1,3 +1,10 @@
skimage (0.5.0+git100-gfeb3e92-2) unstable; urgency=low
* debian/rules: globally export MPLCONFIGDIR and HOME so they would be
in effect also for unittests resolving FTBFS on build boxes.
-- Yaroslav Halchenko <debian@onerussian.com> Mon, 21 May 2012 13:11:43 -0400
skimage (0.5.0+git100-gfeb3e92-1) unstable; urgency=low
[ Stefan van der Walt ]
+10 -1
View File
@@ -7,6 +7,9 @@ PACKAGE_ROOT_DIR = $(CURDIR)/debian/${PACKAGE_NAME}
PYVERS = $(shell pyversions -vr)
PYVER = $(shell pyversions -vd)
export MPLCONFIGDIR=$(CURDIR)/build
export HOME=$(CURDIR)/build
# Mega rule
%:
dh $@ --buildsystem python_distutils
@@ -17,6 +20,12 @@ ifeq (,$(filter noclean,$(DEB_BUILD_OPTIONS)))
dh_clean
endif
# Assure Agg backend for matplotlib to avoid any possible complication
override_dh_auto_configure:
mkdir -p $(MPLCONFIGDIR)
echo "backend : Agg" >| $(MPLCONFIGDIR)/matplotlibrc
dh_auto_configure
# Build docs during install
override_dh_auto_install: ${PYVERS:%=python-install%}
@@ -26,7 +35,7 @@ python-install%:
: # Build Documentation
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
export PYTHONPATH=$(PACKAGE_ROOT_DIR)/usr/lib/python$*/dist-packages MPLCONFIGDIR=$(CURDIR)/build HOME=$(CURDIR)/build; \
export PYTHONPATH=$(PACKAGE_ROOT_DIR)/usr/lib/python$*/dist-packages; \
cd doc; test -d build/html || $(MAKE) html
python$* setup.py install --install-layout=deb --root=$(PACKAGE_ROOT_DIR)
: # Use jquery and underscore from Debian package, so prune shipped one