Commit 932e1a00 authored by Andrea Zanoni's avatar Andrea Zanoni
Browse files

Fix for numpy check, for Python3 compatibility

parent aa68b408
......@@ -771,7 +771,7 @@ if test "$ol_enable_python" != no ; then
AC_MSG_ERROR([python needs swig])
fi
if test "$ol_enable_python" = yes ; then
PYTHON_NUMPY_HEADERS=`$PYTHON -c "import numpy; print numpy.get_include()" 2>/dev/null`
PYTHON_NUMPY_HEADERS=`$PYTHON -c "from __future__ import print_function; import numpy; print(\"{}\".format(numpy.get_include()))" 2>/dev/null`
if test x"$PYTHON_NUMPY_HEADERS" = x ; then
AC_MSG_ERROR([python needs numpy - including its development packages])
else
......
Supports Markdown
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