Kaydet (Commit) 13458077 authored tarafından Jürgen Schmidt's avatar Jürgen Schmidt

#122010# prepare configur to support Python 2.7.5 and newer on MacOS, 2.7.1 is now still supported

üst 454614af
...@@ -4090,16 +4090,17 @@ if test "$_os" = "Darwin" && test "$with_system_python" != "no"; then ...@@ -4090,16 +4090,17 @@ if test "$_os" = "Darwin" && test "$with_system_python" != "no"; then
with_system_python=yes with_system_python=yes
_python="/Library/Frameworks/Python.framework/Versions/Current/bin/python" _python="/Library/Frameworks/Python.framework/Versions/Current/bin/python"
_python_version=`$_python -c "import platform; print platform.python_version();"` _python_hexversion=`$_python -c "import sys; print sys.hexversion;"`
if test "$_python_version" = "2.7.4" ; then dnl hex version of Python 2.7.1 = 34013680
if test "$_python_hexversion" >= "34013680" ; then
AC_MSG_RESULT([compiling against system python (version $_python_version)]) AC_MSG_RESULT([compiling against system python (version $_python_version)])
_python_ver=`$_python -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'));"` _python_ver=`$_python -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'));"`
PYTHON_CFLAGS="-I/Library/Frameworks/Python.framework/Versions/$_python_ver/include/python$_python_ver" PYTHON_CFLAGS="-I/Library/Frameworks/Python.framework/Versions/$_python_ver/include/python$_python_ver"
else else
AC_MSG_ERROR([Python 2.7.4 is required]) AC_MSG_ERROR([Python 2.7.1 or higher is required])
fi fi
PYTHON_LIBS="-framework Python" PYTHON_LIBS="-framework Python"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment