|
[yoda-svn] yoda: Quit during configure if no suitable cython is found.YODA Mercurial yoda at projects.hepforge.orgTue Sep 20 13:15:02 BST 2016
details: https://yoda.hepforge.org/hg/yoda/rev/df60484216d5 branches: release-1-6 changeset: 1296:df60484216d5 user: David Grellscheid <david.grellscheid at durham.ac.uk> date: Tue Sep 20 13:13:29 2016 +0100 description: Quit during configure if no suitable cython is found. diffs (30 lines): --- a/configure.ac Tue Sep 20 09:24:43 2016 +0100 +++ b/configure.ac Tue Sep 20 13:13:29 2016 +0100 @@ -130,8 +130,26 @@ if test x$enable_pyext == xyes; then AM_CHECK_CYTHON([0.20], [:], [:]) if test x$CYTHON_FOUND = xyes; then - AC_MSG_NOTICE([Cython >= 0.20 found: Python extension source can be rebuilt (for developers)]) + AS_VERSION_COMPARE([$CYTHON_VERSION], [0.24], + [AC_MSG_NOTICE([Cython >= 0.20 found: Python extension source can be rebuilt (for developers)])], + [AC_MSG_NOTICE([ +************************************************** +Cython 0.24.x does not work for non-tarball builds + (https://github.com/cython/cython/issues/1465) +**************************************************]); CYTHON_FOUND="no"], + [AC_MSG_NOTICE([ +************************************************** +Cython 0.24.x does not work for non-tarball builds + (https://github.com/cython/cython/issues/1465) +**************************************************]); CYTHON_FOUND="no"]) fi + + AC_CHECK_FILE([pyext/yoda/core.cpp], + [], + [if test "x$CYTHON_FOUND" != "xyes"; then + AC_MSG_ERROR([Cython is required for --enable-pyext.]) + fi]) + ## Set extra Python extension build flags (to cope with Cython output code oddities) PYEXT_CXXFLAGS=$CXXFLAGS AC_CEDAR_CHECKCXXFLAG([-Wno-unused-but-set-variable], [PYEXT_CXXFLAGS="$PYEXT_CXXFLAGS -Wno-unused-but-set-variable"])
More information about the yoda-svn mailing list |