From 75135af65fa95dfcb51d5025a824f0971fafbdbc Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Fri, 5 Feb 2016 12:32:02 -0800 Subject: [PATCH] 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. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6df6bd6a..89e2b41b 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,8 @@ default: build PYTHON=python export PYTHON +PYFLAKES=pyflakes +export PYFLAKES # 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. @@ -132,7 +134,7 @@ check-miscaptures: .PHONY: pyflakes pyflakes: - @$(PYTHON) -OOu `which pyflakes` $(SOURCES) |sort |uniq + $(PYFLAKES) $(SOURCES) |sort |uniq @echo .PHONY: check-umids -- 2.45.2