mirror of
https://github.com/containers/podman.git
synced 2025-06-25 12:20:42 +08:00
Detect Python executable in Makefile
`make help` failed on modern platforms that have only python3 executable installed. Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
This commit is contained in:
3
Makefile
3
Makefile
@ -32,6 +32,7 @@ BUILDTAGS ?= \
|
|||||||
exclude_graphdriver_devicemapper \
|
exclude_graphdriver_devicemapper \
|
||||||
seccomp \
|
seccomp \
|
||||||
varlink
|
varlink
|
||||||
|
PYTHON ?= $(shell command -v python python3)
|
||||||
|
|
||||||
GO_BUILD=$(GO) build
|
GO_BUILD=$(GO) build
|
||||||
# Go module support: set `-mod=vendor` to use the vendored sources
|
# Go module support: set `-mod=vendor` to use the vendored sources
|
||||||
@ -133,7 +134,7 @@ endef
|
|||||||
export PRINT_HELP_PYSCRIPT
|
export PRINT_HELP_PYSCRIPT
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@python -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST)
|
@$(PYTHON) -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST)
|
||||||
|
|
||||||
.gopathok:
|
.gopathok:
|
||||||
ifeq ("$(wildcard $(GOPKGDIR))","")
|
ifeq ("$(wildcard $(GOPKGDIR))","")
|
||||||
|
Reference in New Issue
Block a user