Skip to content

Commit 1a92711

Browse files
committed
Ensure PYTHON_VERSION exists
1 parent a7a77fe commit 1a92711

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ else
1515
VIRTUALENV_COMPONENTS_DIR ?= virtualenv-components
1616
endif
1717

18+
# Assign PYTHON_VERSION if it doesn't already exist
19+
PYTHON_VERSION ?= python3
20+
1821
BINARIES := bin
1922

2023
# All components are prefixed by st2 and not .egg-info.
@@ -106,7 +109,7 @@ all: requirements configgen check tests
106109
# Target for debugging Makefile variable assembly
107110
.PHONY: play
108111
play:
109-
@echo PYTHON_VERSION=$$(python --version)
112+
@echo PYTHON_VERSION=$(PYTHON_VERSION) ($$($(PYTHON_VERSION) --version))
110113
@echo
111114
@echo COVERAGE_GLOBS=$(COVERAGE_GLOBS_QUOTED)
112115
@echo

0 commit comments

Comments
 (0)