Skip to content

Commit c6620cc

Browse files
committed
fall back to TRAVIS_PYTHON_VERSION in Makefile
1 parent 28e715c commit c6620cc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ JAIL_IP?=172.16.0
44
JAIL_NET?=16
55
MYPYPATH = $(shell pwd)/.travis/mypy-stubs
66

7-
PYTHON_VERSION != if [ "$(PYTHON_VERSION)" != "" ]; then echo $(PYTHON_VERSION); else pkg info -g 'python3*' | cut -d'-' -f1 | sed 's/^python//' | sort -n | tail -n1 | sed -r 's/^([0-9])([0-9]+)/\1.\2/'; fi
8-
PYTHON ?= python${PYTHON_VERSION}
7+
PYTHON_VERSION ?= $(TRAVIS_PYTHON_VERSION)
8+
SELECTED_PYTHON_VERSION != if [ "$(PYTHON_VERSION)" != "" ]; then echo $(PYTHON_VERSION); else pkg info -g 'python3*' | cut -d'-' -f1 | sed 's/^python//' | sort -n | tail -n1 | sed -r 's/^([0-9])([0-9]+)/\1.\2/'; fi
9+
PYTHON ?= python${SELECTED_PYTHON_VERSION}
910
pyver= ${PYTHON:S/^python//:S/.//:C/\([0-9]+\)/\1/}
1011

1112
.if $(pyver) < 35

0 commit comments

Comments
 (0)