[scikit-learn] 01/01: BF: use build dir not pkg installation during tests and docs build
Andreas Tille
tille at debian.org
Wed Dec 28 13:11:35 UTC 2016
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to tag _debian
in repository scikit-learn.
commit e362e50defb67fb8372d91310329be53802d9f2e
Author: Yaroslav Halchenko <debian at onerussian.com>
Date: Thu Oct 22 14:13:33 2015 -0500
BF: use build dir not pkg installation during tests and docs build
---
debian/rules | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/debian/rules b/debian/rules
index 7ef9699..c7b23a0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -42,13 +42,14 @@ override_dh_clean:
override_dh_auto_install: ${PYVERS:%=python-install%} ${PY3VERS:%=python-install%} ${PYVERS:%=python-test%} ${PY3VERS:%=python-test%}
# Per Python version logic -- install, test, move .so into -lib
python-install%:
+ echo "I: installing"
python$* setup.py install --install-layout=deb --root=$(PACKAGE$*_ROOT_DIR)
python-test%: python-install%
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
: # Run unittests here against installed scikits.learn
echo "$*" | grep -q '^3' && PY=3 || PY=$*; \
- export PYTHONPATH=`/bin/ls -d $$PWD/$(PACKAGE$*_ROOT_DIR)/usr/lib/python$$PY/*/`; \
+ export PYTHONPATH=`/bin/ls -d $$PWD/build/lib.*-*-$*/`; \
export MPLCONFIGDIR=$(CURDIR)/build HOME=$(CURDIR)/build; \
export JOBLIB_MULTIPROCESSING=0; \
cd build/; python$* /usr/bin/nosetests -s -v $(NOSEARGS) sklearn && \
@@ -64,7 +65,7 @@ ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
ifneq (,$(findstring -a,$(DH_INTERNAL_OPTIONS)))
: # not building documentation in -a
else
- export PYTHONPATH=`/bin/ls -d $$PWD/$(PACKAGE2_ROOT_DIR)/usr/lib/python$(PYVER)/*`; \
+ export PYTHONPATH=`/bin/ls -d $$PWD/build/lib.*-$(PYVER)`; \
export MPLCONFIGDIR=$(CURDIR)/build HOME=$(CURDIR)/build; \
cd doc; $(MAKE) html
endif
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/scikit-learn.git
More information about the debian-science-commits
mailing list