about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhektr <31568062+hektr@users.noreply.github.com>2018-07-18 23:54:08 +0300
committerGitHub <noreply@github.com>2018-07-18 23:54:08 +0300
commit712f793e78cde934d3573c6747518d834e7beec8 (patch)
tree870c164028e9bb7a6653f78234f273737d7262a6
parent53e48ed044b3f69cf21a43a4c9c4450b56972165 (diff)
downloadranger-712f793e78cde934d3573c6747518d834e7beec8.tar.gz
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`...
-rw-r--r--Makefile5
1 files 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 ?= /
> 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244