py-defs.mk, projects.mk: Fix /usr/bin/python globbing on OpenSUSE

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2020-05-18 13:15:35 +00:00
commit f3febfa460
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ ifneq ($(PYTHON_VERSION),)
PYTHON := /usr/bin/python$(PYTHON_VERSION)
else
ifeq ($(PYTHON),)
PYTHON := $(lastword $(shell ls -v /usr/bin/python[0-9]*))
PYTHON := $(lastword $(shell ls -v /usr/bin/python[0-9].[0-9]))
endif
PYTHON_VERSION ?= $(patsubst python%,%,$(notdir $(PYTHON)))
endif