Makefile: run pyflakes as 'pyflakes', not python which pyflakes

This funky invocation syntax was introduced in 2007 (commit 56ad518),
with a comment of "make pyflakes run faster". I no longer have any idea
why that might have been the case. It's time to simplify this, because
some of our buildslaves have pipsi-installed "pyflakes" on their $PATH,
which use a "python" that's different than the one on $PATH.
This commit is contained in:
Brian Warner 2016-02-05 12:32:02 -08:00
parent e4d536e609
commit 75135af65f

View File

@ -5,6 +5,8 @@ default: build
PYTHON=python PYTHON=python
export PYTHON export PYTHON
PYFLAKES=pyflakes
export PYFLAKES
# setup.py will extend sys.path to include our support/lib/... directory # setup.py will extend sys.path to include our support/lib/... directory
# itself. It will also create it in the beginning of the 'develop' command. # itself. It will also create it in the beginning of the 'develop' command.
@ -132,7 +134,7 @@ check-miscaptures:
.PHONY: pyflakes .PHONY: pyflakes
pyflakes: pyflakes:
@$(PYTHON) -OOu `which pyflakes` $(SOURCES) |sort |uniq $(PYFLAKES) $(SOURCES) |sort |uniq
@echo @echo
.PHONY: check-umids .PHONY: check-umids