Skip to content

Commit 4f55423

Browse files
committed
accept PYTHON_VERSION env variable in Makefile
Pkg is not available on Travis (Linux), but a PYTHON_VERSION env variable is set
1 parent 0b6a71d commit 4f55423

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

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

7-
LATEST_PKG_PYTHON_VERSION != pkg info -g 'python3*' | cut -d'-' -f1 | sed 's/^python//' | sort -n | tail -n1 | sed -r 's/^([0-9])([0-9]+)/\1.\2/'
8-
PYTHON ?= python${LATEST_PKG_PYTHON_VERSION}
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}
99
pyver= ${PYTHON:S/^python//:S/.//:C/\([0-9]+\)/\1/}
1010

1111
.if $(pyver) < 35

0 commit comments

Comments
 (0)