[buildcore] Put Python detection inside ENV_RUN call
This commit is contained in:
parent
a119f96a73
commit
c0081619e6
4
deps/buildcore/base.mk
vendored
4
deps/buildcore/base.mk
vendored
@ -24,7 +24,7 @@ ifneq ($(shell which docker 2> /dev/null),)
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(shell which python3 2> /dev/null),)
|
ifneq ($(shell ${ENV_RUN} which python3 2> /dev/null),)
|
||||||
PYTHON3=python3
|
PYTHON3=python3
|
||||||
else
|
else
|
||||||
ifeq ($(shell ${ENV_RUN} python -c 'import sys; print(sys.version_info[0])'),3)
|
ifeq ($(shell ${ENV_RUN} python -c 'import sys; print(sys.version_info[0])'),3)
|
||||||
@ -54,7 +54,7 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
VCPKG_DIR=$(VCPKG_DIR_BASE)/$(VCPKG_VERSION)-$(HOST_ENV)
|
VCPKG_DIR=$(VCPKG_DIR_BASE)/$(VCPKG_VERSION)-$(HOST_ENV)
|
||||||
CURRENT_BUILD=$(HOST_ENV)-$(shell ${PYBB} cat .current_build)
|
CURRENT_BUILD=$(HOST_ENV)-$(shell ${ENV_RUN} ${PYBB} cat .current_build)
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build:
|
build:
|
||||||
|
Loading…
Reference in New Issue
Block a user