File tree 2 files changed +8
-7
lines changed 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
# Automating common tasks for NIPY development
2
2
3
- PYTHON = python
3
+ PYTHON ? = python
4
4
HTML_DIR = doc/build/html
5
5
LATEX_DIR = doc/build/latex
6
6
WWW_DIR = doc/dist
@@ -80,16 +80,16 @@ bdist-egg-tests:
80
80
$(PYTHON ) -c ' from nisext.testers import bdist_egg_tests; bdist_egg_tests("nipy")'
81
81
82
82
source-release : distclean
83
- python -m compileall .
83
+ $( PYTHON ) -m compileall .
84
84
make distclean
85
- python setup.py sdist --formats=gztar,zip
85
+ $( PYTHON ) setup.py sdist --formats=gztar,zip
86
86
87
87
venv-tests :
88
88
# I use this for python2.5 because the sdist-tests target doesn't work
89
89
# (the tester routine uses a 2.6 feature)
90
90
make distclean
91
91
- rm -rf $(VIRTUAL_ENV ) /lib/python$(PYVER ) /site-packages/nipy
92
- python setup.py install
92
+ $( PYTHON ) setup.py install
93
93
cd .. && nosetests $(VIRTUAL_ENV ) /lib/python$(PYVER ) /site-packages/nipy
94
94
95
95
tox-fresh :
Original file line number Diff line number Diff line change 1
1
# Makefile for Sphinx documentation
2
2
#
3
3
4
+ PYTHON ?= python
4
5
DIST_DIR = dist
5
6
6
7
# You can set these variables from the command line.
@@ -58,15 +59,15 @@ htmlonly:
58
59
@echo " Build finished. The HTML pages are in build/html."
59
60
60
61
api :
61
- python ../tools/build_modref_templates.py
62
+ $( PYTHON ) ../tools/build_modref_templates.py
62
63
@echo " Build API docs finished."
63
64
64
65
html : api htmlonly
65
66
-ln -s build manual
66
67
@echo " Build HTML and API finished."
67
68
68
69
gitwash-update :
69
- python ../tools/gitwash_dumper.py devel/guidelines nipy \
70
+ $( PYTHON ) ../tools/gitwash_dumper.py devel/guidelines nipy \
70
71
--github-user=nipy \
71
72
--project-url=http://nipy.org/nipy \
72
73
--project-ml-url=https://mail.python.org/mailman/listinfo/neuroimaging
@@ -90,7 +91,7 @@ latex: api
90
91
mkdir -p build/latex build/doctrees
91
92
$(SPHINXBUILD ) -b latex $(ALLSPHINXOPTS ) build/latex
92
93
# Clear bug for longtable column output in sphinx
93
- python ../tools/fix_longtable.py build/latex/nipy.tex
94
+ $( PYTHON ) ../tools/fix_longtable.py build/latex/nipy.tex
94
95
@echo
95
96
@echo " Build finished; the LaTeX files are in build/latex."
96
97
@echo " Run \` make all-pdf' or \` make all-ps' in that directory to" \
You can’t perform that action at this time.
0 commit comments