File: 0017-remove-swig-py3-arg.patch

package info (click to toggle)
siconos 4.4.0%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 78,600 kB
  • sloc: cpp: 160,976; ansic: 129,998; fortran: 33,051; python: 20,958; xml: 1,244; sh: 385; makefile: 318
file content (19 lines) | stat: -rw-r--r-- 603 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
From: Stephen Sinclair <radarsat1@gmail.com>
Date: Thu, 5 Jan 2023 18:58:00 +0000
Subject: Remove -py3 argument to swig.

This option is no longer supported and throws an error.
---
diff --git a/wrap/CMakeLists.txt b/wrap/CMakeLists.txt
index fd6865e..39819b4 100644
--- a/wrap/CMakeLists.txt
+++ b/wrap/CMakeLists.txt
@@ -26,8 +26,6 @@ if(WITH_PYTHON_WRAPPER)
     list(APPEND CMAKE_SWIG_FLAGS "-D__${SYSTEM_ARCHITECTURE}__")
   endif()
 
-  list(APPEND CMAKE_SWIG_FLAGS "-py3")
-
   list(REMOVE_DUPLICATES CMAKE_SWIG_FLAGS)
   set(CMAKE_SWIG_FLAGS "${CMAKE_SWIG_FLAGS}" CACHE INTERNAL "Swig flags")