mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
py-defs.mk, projects.mk: Use latest install Python
Use $(lastword $(shell ls -v /usr/bin/python[0-9]*)) for the Python version to use. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
a82fa9023b
commit
caf33841b4
2 changed files with 12 additions and 7 deletions
|
|
@ -1,9 +1,11 @@
|
|||
ENV_PYTHONPATH := $(PYTHONPATH)
|
||||
|
||||
ifeq ($(PYTHON),)
|
||||
PYTHON_VERSION ?= 3
|
||||
PYTHON ?= /usr/bin/python$(PYTHON_VERSION)
|
||||
ifneq ($(PYTHON_VERSION),)
|
||||
PYTHON := /usr/bin/python$(PYTHON_VERSION)
|
||||
else
|
||||
ifeq ($(PYTHON),)
|
||||
PYTHON := $(lastword $(shell ls -v /usr/bin/python[0-9]*))
|
||||
endif
|
||||
PYTHON_VERSION ?= $(patsubst python%,%,$(notdir $(PYTHON)))
|
||||
endif
|
||||
PYTHON_MAJOR = $(basename $(PYTHON_VERSION))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue