diff --git a/make/projects.mk b/make/projects.mk index 5d2c91c1..1fded724 100644 --- a/make/projects.mk +++ b/make/projects.mk @@ -31,7 +31,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 diff --git a/make/py-defs.mk b/make/py-defs.mk index 6cb92979..9931c480 100644 --- a/make/py-defs.mk +++ b/make/py-defs.mk @@ -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