From 712f793e78cde934d3573c6747518d834e7beec8 Mon Sep 17 00:00:00 2001 From: hektr <31568062+hektr@users.noreply.github.com> Date: Wed, 18 Jul 2018 23:54:08 +0300 Subject: Update PYTHON variable `which python3` will likely show the latest version of python installed on system, so, it should go the first. I think, it's not necessary to write all of possible versions of python. You can just use `which python3 || which python`... --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6cd1ec8f..1c3745a6 100644 --- a/Makefile +++ b/Makefile @@ -8,8 +8,9 @@ VERSION_RIFLE = $(VERSION) SNAPSHOT_NAME ?= $(NAME)-$(VERSION)-$(shell git rev-parse HEAD | cut -b 1-8).tar.gz # Find suitable python version (need python >= 2.6 or 3.1): PYTHON ?= $(shell python -c 'import sys; sys.exit(sys.version < "2.6")' && \ - which python || which python3.3 || which python3.2 || which python3.1 || \ - which python3 || which python2.7 || which python2.6) + which python3 || which python3.6 || which python3.5 || which python3.4 || \ + which python3.3 || which python3.2 || which python3.1 || \ + which python || which python2.7 || which python2.6) SETUPOPTS ?= '--record=install_log.txt' DOCDIR ?= doc/pydoc DESTDIR ?= / -- cgit 1.4.1-2-gfad0