about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2020-06-22 13:54:49 +0200
committertoonn <toonn@toonn.io>2020-06-22 13:54:49 +0200
commit4bb83b37819f5085596a6cd82a5010d5560a5db4 (patch)
tree52918137f3a494d9669338f531b54fca64b24945 /Makefile
parent1654128f955b320354eea98a0bb6970a159ab16f (diff)
parentb8b540916f14b8a4c48fac13c38daa9e3ebf2a3c (diff)
downloadranger-4bb83b37819f5085596a6cd82a5010d5560a5db4.tar.gz
Merge branch 'install-default-py3'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d70728f6..82a6153a 100644
--- a/Makefile
+++ b/Makefile
@@ -8,9 +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 python3) \
+	     || (python -c 'import sys; sys.exit(sys.version < "2.6")' && \
 	      which python) \
-	     || (which python3) \
 	     || (python2 -c 'import sys; sys.exit(sys.version < "2.6")' && \
 	         which python2) \
 	   )