Commit 2e44a3d5 authored by Ralf Mueller's avatar Ralf Mueller 🎣
Browse files

make python handling compatible with python3

parent fd53d360
......@@ -312,8 +312,8 @@ AC_ARG_ENABLE(python,
[AC_CHECK_PROG(PYTHON,python,python)
enable_python=no
for PYTHON_INCLUDES in \
"-I`$PYTHON -c 'from distutils import sysconfig;print sysconfig.get_python_inc()'`" \
"-I`$PYTHON -c 'from distutils import sysconfig;print sysconfig.get_python_lib(1,1)' | $SED 's/lib/include/'`"
"-I`$PYTHON -c 'from distutils import sysconfig;print(sysconfig.get_python_inc())'`" \
"-I`$PYTHON -c 'from distutils import sysconfig;print(sysconfig.get_python_lib(1,1))' | $SED 's/lib/include/'`"
do
save_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
......
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