File: no_search_of_Python3.patch

package info (click to toggle)
stopt 5.16%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,904 kB
  • sloc: cpp: 70,529; python: 5,950; makefile: 72; sh: 57
file content (20 lines) | stat: -rw-r--r-- 801 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: skipping the search of Python3 using the CMake find-package
 mechanism. Instead we provide the needed variables in debian/rules. This is
 to avoid errors when multiple versions of Python3 are co-installed.
Author: Pierre Gruet <pgt@debian.org>
Forwarded: not-needed
Last-Update: 2022-11-18

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -188,7 +188,9 @@
 
     
   # Python
-  FIND_PACKAGE(Python3 REQUIRED COMPONENTS Interpreter Development NumPy)
+  # We provide relevant variables by hand in debian/rules to avoid the
+  # multi-version hell when multiple version of Python3 are installed.
+  #FIND_PACKAGE(Python3 REQUIRED COMPONENTS Interpreter Development NumPy)
   INCLUDE_DIRECTORIES(SYSTEM ${Python3_INCLUDE_DIRS})
   MESSAGE(STATUS "Python: ${Python3_INCLUDE_DIRS}")