[sr-dev] git:master:8be2b013: app_python: Makefile - look also for python2.7 if python2 is not found

Daniel-Constantin Mierla miconda at gmail.com
Tue Nov 29 09:36:09 CET 2022


Module: kamailio
Branch: master
Commit: 8be2b013b2cd2aa71e1c7e5618d7d4b079a4b5e5
URL: https://github.com/kamailio/kamailio/commit/8be2b013b2cd2aa71e1c7e5618d7d4b079a4b5e5

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-11-29T08:45:07+01:00

app_python: Makefile - look also for python2.7 if python2 is not found

---

Modified: src/modules/app_python/Makefile

---

Diff:  https://github.com/kamailio/kamailio/commit/8be2b013b2cd2aa71e1c7e5618d7d4b079a4b5e5.diff
Patch: https://github.com/kamailio/kamailio/commit/8be2b013b2cd2aa71e1c7e5618d7d4b079a4b5e5.patch

---

diff --git a/src/modules/app_python/Makefile b/src/modules/app_python/Makefile
index 57f9def68f..f95b635d2a 100644
--- a/src/modules/app_python/Makefile
+++ b/src/modules/app_python/Makefile
@@ -13,8 +13,11 @@ PYTHON=$(shell which python2)
 
 # workaround for some OS (like MacOS) that don't have a python2 link
 ifeq ($(PYTHON),)
+PYTHON=$(shell which python2.7)
+ifeq ($(PYTHON),)
 PYTHON=python
 endif
+endif
 
 PYTHON_VERSION=${shell ${PYTHON} -c "import distutils.sysconfig;print distutils.sysconfig.get_config_var('VERSION')"}
 PYTHON_LIBDIR=${shell ${PYTHON} -c "import distutils.sysconfig;print distutils.sysconfig.get_config_var('LIBDIR')"}




More information about the sr-dev mailing list