From 285fb7e2ee05935a331407d9198f660c6a6c3347 Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Wed, 7 Jun 2023 09:42:37 +0200 Subject: [PATCH] MT#57437 Upstream: apps/ivr fix for Python3.10 and higher Backport from the upstream to fix Python versioning. Upstream commit: e943f98a8d09a06c88eca10d93e51f7a13056e31 Change-Id: Ia7d6b49270c9f3fa3cc7cb8d921334b2afc1db9b --- apps/ivr/Makefile.defs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/ivr/Makefile.defs b/apps/ivr/Makefile.defs index 7e68920a..48e0f06f 100644 --- a/apps/ivr/Makefile.defs +++ b/apps/ivr/Makefile.defs @@ -1,6 +1,9 @@ -# Python version: 2.5, 2.4 or 2.3 +# Python version: 2.3, 2.4, 2.5, and 3.x # +PYTHON_VERSION ?= $(shell python2 -c 'import sys;print sys.version[0:3]') PYTHON_VERSION ?= $(shell python -c 'import sys;print sys.version[0:3]') +PYTHON_VERSION ?= $(shell python3 -c 'import sys;print("%d.%d" % (sys.version_info.major,sys.version_info.minor))') + PY_VER = $(PYTHON_VERSION) PY_EXE = python$(PY_VER)