Skip to content

Commit b612d05

Browse files
committed
python: Improve compatibility with Debian 13
The "python" binary is no longer provided by default -> adjust Makefile. (cherry picked from commit 70003cf)
1 parent 66cca03 commit b612d05

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

modules/python/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ auto_gen=
1010
NAME=python.so
1111

1212
ifeq (,$(PYTHON))
13-
PYTHON=python
13+
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)
1418
endif
1519

1620
PYTHON_VERSION=${shell ${PYTHON} -c "import sysconfig;print(sysconfig.get_config_var('VERSION'))"}

0 commit comments

Comments
 (0)