[Rivet-svn] rivet: Require Cython 0.23.5

Rivet Mercurial rivet at projects.hepforge.org
Tue Sep 27 18:00:02 BST 2016


details:   https://rivet.hepforge.org/hg/rivet/rev/a7b165bf72d2
branches:  release-2-5-x
changeset: 5527:a7b165bf72d2
user:      David Grellscheid <david.grellscheid at durham.ac.uk>
date:      Tue Sep 27 17:54:45 2016 +0100
description:
Require Cython 0.23.5

diffs (34 lines):

--- a/configure.ac	Tue Sep 27 17:31:49 2016 +0100
+++ b/configure.ac	Tue Sep 27 17:54:45 2016 +0100
@@ -271,11 +271,28 @@
 
 ## Cython checks
 if test x$enable_pyext == xyes; then
-  AM_CHECK_CYTHON([0.18], [:], [:])
+  AM_CHECK_CYTHON([0.23.5], [:], [:])
   if test x$CYTHON_FOUND = xyes; then
-    AC_MSG_NOTICE([Cython >= 0.18 found: Python extension source can be rebuilt (for developers)])
-    cython_compiler=$CXX
+    AS_VERSION_COMPARE([$CYTHON_VERSION], [0.24],
+          [AC_MSG_NOTICE([Cython >= 0.23.5 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)
+
+You can install a personal copy of Cython with
+  pip install --user cython==0.23.5
+**************************************************]); CYTHON_FOUND="no"],
+          [AC_MSG_NOTICE([
+**************************************************
+Cython 0.24.x does not work for non-tarball builds
+  (https://github.com/cython/cython/issues/1465)
+
+You can install a personal copy of Cython with
+  pip install --user cython==0.23.5
+**************************************************]); CYTHON_FOUND="no"])
   fi
+  cython_compiler=$CXX
   ## 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 Rivet-svn mailing list