Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DAER
mbdyn
Commits
932e1a00
Commit
932e1a00
authored
Mar 16, 2020
by
Andrea Zanoni
Browse files
Fix for numpy check, for Python3 compatibility
parent
aa68b408
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
932e1a00
...
...
@@ -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
...
...
Andrea Zanoni
@10260632
mentioned in issue
#37 (closed)
·
Mar 16, 2020
mentioned in issue
#37 (closed)
mentioned in issue #37
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment