Skip to content

Commit 204f7a4

Browse files
committed
NF - target for virtualenv tests
1 parent be45df8 commit 204f7a4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ NOSETESTS = $(PYTHON) $(shell which nosetests)
1717
PYVER := $(shell $(PYTHON) -V 2>&1 | cut -d ' ' -f 2,2 | cut -d '.' -f 1,2)
1818
DISTUTILS_PLATFORM := \
1919
$(shell \
20-
$(PYTHON) -c "import distutils.util; print distutils.util.get_platform()")
20+
$(PYTHON) -c "import distutils.util; print(distutils.util.get_platform())")
2121

2222
# Helpers for version handling.
2323
# Note: can't be ':='-ed since location of invocation might vary
@@ -250,5 +250,13 @@ source-release: clean
250250
python -m compileall .
251251
python setup.py sdist --formats=gztar,zip
252252

253+
venv-tests:
254+
# I use this for python2.5 because the sdist-tests target doesn't work
255+
# (the tester routine uses a 2.6 feature)
256+
make distclean
257+
- rm -rf $(VIRTUAL_ENV)/lib/python$(PYVER)/site-packages/nibabel
258+
python setup.py install
259+
cd .. && nosetests $(VIRTUAL_ENV)/lib/python$(PYVER)/site-packages/nibabel
260+
253261
.PHONY: orig-src pylint
254262

0 commit comments

Comments
 (0)