[buildcore] Fix Python 3 detection to work if python command missing
This commit is contained in:
parent
f2ddd15d63
commit
bab9776fe4
8
deps/buildcore/base.mk
vendored
8
deps/buildcore/base.mk
vendored
@ -24,10 +24,12 @@ ifneq ($(shell which docker 2> /dev/null),)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(shell ${ENV_RUN} python -c 'import sys; print(sys.version_info[0])'),3)
|
||||
PYTHON3=python
|
||||
else
|
||||
ifneq ($(shell which python3 2> /dev/null),)
|
||||
PYTHON3=python3
|
||||
else
|
||||
ifeq ($(shell ${ENV_RUN} python -c 'import sys; print(sys.version_info[0])'),3)
|
||||
PYTHON3=python
|
||||
endif
|
||||
endif
|
||||
|
||||
SCRIPTS=${BUILDCORE_PATH}/scripts
|
||||
|
Loading…
Reference in New Issue
Block a user