All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 4m38s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 4m51s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 4m39s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m52s
CI / Packaging test (push) Successful in 0s
f5249a58 makes py-version.mk use $(WHICH) but doesn't include the defining
common.mk.
Signed-off-by: Jan Lindemann <jan@janware.com>
16 lines
580 B
Makefile
16 lines
580 B
Makefile
# This file strives to be the most minimal piece of code to set the python
|
|
# version up
|
|
|
|
include $(JWBDIR)/make/common.mk
|
|
|
|
ifneq ($(PYTHON_VERSION),)
|
|
PYTHON := /usr/bin/python$(PYTHON_VERSION)
|
|
else
|
|
ifeq ($(PYTHON),)
|
|
#PYTHON := $(lastword $(shell /bin/bash -O extglob -c "ls -v /usr/bin/python[0-9].+([0-9])"))
|
|
PYTHON := $(shell $(WHICH) python3 | xargs readlink -f)
|
|
endif
|
|
PYTHON_VERSION ?= $(patsubst python%,%,$(notdir $(PYTHON)))
|
|
endif
|
|
PYTHON_MAJOR = $(basename $(PYTHON_VERSION))
|
|
|