mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-18 02:40:07 +00:00
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:
parent
e4d536e609
commit
75135af65f
4
Makefile
4
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
|
||||
|
Loading…
Reference in New Issue
Block a user