Skip to content

Commit f844734

Browse files
committed
RF: Makefile - use $(PYTHON) consistently to centralize choice of Python to use
1 parent 02e32dc commit f844734

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ zipdoc: html
1111

1212
sdist: zipdoc
1313
@echo "Building source distribution..."
14-
python setup.py sdist
14+
$(PYTHON) setup.py sdist
1515
@echo "Done building source distribution."
1616
# XXX copy documentation.zip to dist directory.
1717

1818
egg: zipdoc
1919
@echo "Building egg..."
20-
python setup.py bdist_egg
20+
$(PYTHON) setup.py bdist_egg
2121
@echo "Done building egg."
2222

2323
upload_to_pypi: zipdoc
2424
@echo "Uploading to PyPi..."
25-
python setup.py sdist --formats=zip,gztar upload
25+
$(PYTHON) setup.py sdist --formats=zip,gztar upload
2626

2727
trailing-spaces:
2828
find . -name "*[.py|.rst]" -type f | xargs perl -pi -e 's/[ \t]*$$//'
@@ -70,7 +70,7 @@ html:
7070

7171
specs:
7272
@echo "Checking specs and autogenerating spec tests"
73-
env PYTHONPATH=".:$(PYTHONPATH)" python tools/checkspecs.py
73+
env PYTHONPATH=".:$(PYTHONPATH)" $(PYTHON) tools/checkspecs.py
7474

7575
check: check-before-commit # just a shortcut
7676
check-before-commit: specs trailing-spaces html test

0 commit comments

Comments
 (0)