We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1e34a2 commit e502f58Copy full SHA for e502f58
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