summaryrefslogtreecommitdiff
path: root/debian/patches/0003-Force-Python-3-detection-to-avoid-mixing-2-and-3.patch
blob: 431c6a5b700ce567e70a2c505337be22bee1b44c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From 719513ad96cf59e787b0d4eb96173feb527ea4ea Mon Sep 17 00:00:00 2001
From: Gard Spreemann <gspreemann@gmail.com>
Date: Thu, 27 Apr 2017 17:39:39 +0200
Subject: [PATCH 3/3] Force Python 3 detection to avoid mixing 2 and 3.

---
 cmake/modules/FindCython.cmake | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cmake/modules/FindCython.cmake b/cmake/modules/FindCython.cmake
index 04aed1f..f3a5b7b 100644
--- a/cmake/modules/FindCython.cmake
+++ b/cmake/modules/FindCython.cmake
@@ -24,16 +24,16 @@
 
 # Use the Cython executable that lives next to the Python executable
 # if it is a local installation.
-find_package( PythonInterp )
+find_package( PythonInterp 3 )
 if( PYTHONINTERP_FOUND )
   get_filename_component( _python_path ${PYTHON_EXECUTABLE} PATH )
   find_program( CYTHON_EXECUTABLE
-    NAMES cython cython.bat cython3
+    NAMES cython3
     HINTS ${_python_path}
     )
 else()
   find_program( CYTHON_EXECUTABLE
-    NAMES cython cython.bat cython3
+    NAMES cython3
     )
 endif()
 
-- 
2.11.0