We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66cca03 commit b612d05Copy full SHA for b612d05
1 file changed
modules/python/Makefile
@@ -10,7 +10,11 @@ auto_gen=
10
NAME=python.so
11
12
ifeq (,$(PYTHON))
13
-PYTHON=python
+PYTHON := $(shell command -v python3 2>/dev/null || command -v python 2>/dev/null)
14
+endif
15
+
16
+ifeq (,$(PYTHON))
17
+$(error Python interpreter not found; install python3 or set PYTHON=/path/to/python)
18
endif
19
20
PYTHON_VERSION=${shell ${PYTHON} -c "import sysconfig;print(sysconfig.get_config_var('VERSION'))"}
0 commit comments