1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
Author: Andreas Tille <tille@debian.org>
Last-Update: Wed, 08 Feb 2023 15:31:33 +0100
Description: Attempt to get Python3 beeing detected in configure step
--- a/m4/ax_python3_devel.m4
+++ b/m4/ax_python3_devel.m4
@@ -3,7 +3,7 @@
# (AM_PATH_PYTHON) cannot be used for multiple Python version at once
if test -z "$PYTHON3" ; then
- AC_PATH_PROGS([PYTHON3], [python3 python312 python3.12 python311 python3.11 python310 python3.10 python39 python3.9 python38 python3.8 python37 python3.7 python36 python3.6 python35 python3.5 python34 python3.4], [no])
+ AC_PATH_PROGS([PYTHON3], [python3 python312 python3.12 python311 python3.11 python310 python3.10 python39 python3.9 python38 python3.8], [no])
fi
AC_ARG_VAR(PYTHON3, [Path to Python3 interpreter (e.g.: /usr/bin/python3)])
@@ -65,8 +65,7 @@
AC_MSG_CHECKING([for Python3 module extension])
dnl Usually ".so", but for example, Mac OS X uses ".dylib".
- PYTHON3_SO=`$PYTHON3 -c "import sysconfig; \
- print(sysconfig.get_config_var('EXT_SUFFIX'))"`
+ PYTHON3_SO=".so"
AC_SUBST(PYTHON3_SO)
AC_MSG_RESULT([$PYTHON3_SO])
|