File: cython.patch

package info (click to toggle)
pmix 6.0.0%2Breally5.0.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,676 kB
  • sloc: ansic: 125,367; sh: 4,265; python: 2,527; makefile: 2,109; xml: 1,611; perl: 1,151; lex: 138
file content (22 lines) | stat: -rw-r--r-- 1,105 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/config/pmix.m4
+++ b/config/pmix.m4
@@ -1303,16 +1303,16 @@
     if test "$have_cython" = "0"; then
         AC_MSG_RESULT([yes])
         AC_MSG_CHECKING([Cython version])
-        cython_version=`python -c "from Cython.Compiler.Version import version; print(version)"`
+        cython_version=`python3 -c "from Cython.Compiler.Version import version; print(version)"`
         AC_MSG_RESULT([$cython_version])
         PMIX_SUMMARY_ADD([Required Packages], [Cython], [], [yes ($cython_version)])
     else
         AC_MSG_RESULT([no])
         # Cython doesn't have any include or lib files - it is just a binary
-        AC_CHECK_PROG(pmix_cython_rpm, cython, [cython])
+        AC_CHECK_PROG(pmix_cython_rpm, cython3, [cython])
         if test "$pmix_cython_rpm" != ""; then
             AC_MSG_CHECKING([Cython version])
-            cyvers=`cython --version 2>&1`
+            cyvers=`cython3 --version 2>&1`
             cython_version=${cyvers#"Cython version "}
             AC_MSG_RESULT([$cython_version])
             PMIX_SUMMARY_ADD([Bindings], [Cython], [], [yes ($cython_version)])