comparison m4/ax_python_numpy.m4 @ 109:bd6215fa1d87

* ax_python_numpy.m4: Make trivially compatible with Python 3
author Mike Miller <mtmiller@octave.org>
date Sun, 20 Sep 2015 01:37:18 +0200
parents f8e9d39ef81b
children 3af7523b395a
comparison
equal deleted inserted replaced
108:74f17b2a5d45 109:bd6215fa1d87
51 AC_MSG_RESULT([no (python unknown)]) 51 AC_MSG_RESULT([no (python unknown)])
52 ],[ 52 ],[
53 NUMPY_INCLUDEDIR=`$PYTHON -c ' 53 NUMPY_INCLUDEDIR=`$PYTHON -c '
54 try: 54 try:
55 from numpy import get_include 55 from numpy import get_include
56 print get_include() 56 print(get_include())
57 except: 57 except:
58 pass 58 pass
59 '` 59 '`
60 AC_MSG_RESULT([$NUMPY_INCLUDEDIR]) 60 AC_MSG_RESULT([$NUMPY_INCLUDEDIR])
61 ]) 61 ])