setup.py: Use $PYTHON instead of hardcoding python3.

This commit is contained in:
Emmanuel Gil Peyrot 2017-11-19 14:10:37 +01:00
parent 659b310eed
commit 9874fd3faf

View file

@ -1,7 +1,9 @@
TMPDIR=/tmp/ TMPDIR=/tmp/
PYTHON ?= python3
all: Makefile all: Makefile
python3 setup.py build_ext --inplace $(PYTHON) setup.py build_ext --inplace
clean: clean:
find ./ -name \*.pyc -delete find ./ -name \*.pyc -delete
@ -16,7 +18,7 @@ clean:
rm -f poezio/*.so rm -f poezio/*.so
install: all install: all
python3 setup.py install --root=$(DESTDIR) --optimize=1 $(PYTHON) setup.py install --root=$(DESTDIR) --optimize=1
doc: doc:
make -C doc/ html make -C doc/ html