Skip to content

Commit 09dba5c

Browse files
committed
NF: add makefile target for installing from sdist
1 parent 9bfe523 commit 09dba5c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,4 @@ Thumbs.db
7575
# Things specific to this project #
7676
###################################
7777
doc/source/generated
78+
venv/

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,16 @@ sdist-tests:
248248
bdist-egg-tests:
249249
$(PYTHON) -c 'from nisext.testers import bdist_egg_tests; bdist_egg_tests("nibabel", doctests=False, label="not script_test")'
250250

251+
sdist-venv: clean
252+
rm -rf dist venv
253+
unset PYTHONPATH && $(PYTHON) setup.py sdist --formats=zip
254+
virtualenv --system-site-packages --python=$(PYTHON) venv
255+
. venv/bin/activate && pip install --ignore-installed nose
256+
mkdir venv/tmp
257+
cd venv/tmp && unzip ../../dist/*.zip
258+
. venv/bin/activate && cd venv/tmp/nibabel* && python setup.py install
259+
unset PYTHONPATH && . venv/bin/activate && cd venv && nosetests --with-doctest nibabel nisext
260+
251261
source-release: distclean
252262
$(PYTHON) -m compileall .
253263
make distclean

0 commit comments

Comments
 (0)