Skip to content
Snippets Groups Projects
Commit 2e44a3d5 authored by Ralf Mueller's avatar Ralf Mueller :fishing_pole_and_fish:
Browse files

make python handling compatible with python3

parent fd53d360
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment