Kaydet (Commit) cd8b4a92 authored tarafından Pedro Giffuni's avatar Pedro Giffuni

Clean up the python detection for Python 3.

While here request Python be at least version 2.3. While this
version is likely to cause trouble, there is no other option
for older Mac PPC.

The ongoing updates in the python support will require bumping
the minimum to at least Python 2.6 but the recommendation is to
use the internal Python 2.7.x.
üst 3258f700
......@@ -4091,10 +4091,10 @@ elif test -n "$with_system_python" -o -n "$with_system_libs" && \
test "$with_system_python" != "no"; then
with_system_python=yes
AC_MSG_RESULT([external])
AM_PATH_PYTHON([2.2])
AM_PATH_PYTHON([2.3])
python_include=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('INCLUDEPY');"`
python_version=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('VERSION');"`
python_include=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('INCLUDEPY'));"`
python_version=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'));"`
PYTHON_CFLAGS="-I$python_include"
PYTHON_LIBS="-lpython$python_version"
fi
......
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