]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
Paraview: 5.11 build Paraview in debug mode - long standing issue of Paraview/Python...
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Wed, 9 Nov 2022 08:56:34 +0000 (09:56 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Wed, 9 Nov 2022 08:56:34 +0000 (09:56 +0100)
products/ParaView.pyconf
products/patches/paraview-5.11.0.p005-vtkPython-debug.patch [new file with mode: 0644]

index 5b21cba50493041884e64a6efc76cd498013abfb..ee44539b840579ba4060978fa4f50d34cfaf0a25 100755 (executable)
@@ -103,7 +103,7 @@ version_5_11_0_win :
 
 version_5_11_0_win_dbg :
 {
-    compil_script :  'ParaView-5.9.0.bat'
+    compil_script :  'ParaView-5.11.0.bat'
     archive_info : {archive_name : "ParaView-5.11.0-RC2.tar.gz"}
     depend : [
               'Python',
@@ -120,7 +120,8 @@ version_5_11_0_win_dbg :
     opt_depend : ['openmpi', 'ospray','tbb', 'openturns', 'rkCommon', 'matplotlib']
     patches : ['paraview-5.11.0.p001-FindCGNS.patch',
                'paraview-5.11.0.p002-FindMPI.patch',
-               'paraview-5.11.0.p004-vtkUniformHyperTreeGrid.patch'
+               'paraview-5.11.0.p004-vtkUniformHyperTreeGrid.patch',
+               'paraview-5.11.0.p005-vtkPython-debug.patch'
               ]
 }
 
diff --git a/products/patches/paraview-5.11.0.p005-vtkPython-debug.patch b/products/patches/paraview-5.11.0.p005-vtkPython-debug.patch
new file mode 100644 (file)
index 0000000..c31c835
--- /dev/null
@@ -0,0 +1,17 @@
+--- ParaView_ref/VTK/Utilities/Python/vtkPython.h      2022-10-25 18:16:21.000000000 +0200
++++ ParaView_new/VTK/Utilities/Python/vtkPython.h      2022-11-09 09:52:47.289203673 +0100
+@@ -76,8 +76,12 @@
+ #define HAVE_ROUND 1
+ #endif
+-#include <Python.h>
+-
++//#include <Python.h>
++#ifdef VTK_PYTHON_UNDEF_DEBUG
++ #define _DEBUG 1
++ #include <Python.h>
++ #undef _DEBUG
++#endif
+ #if defined(_MSC_VER) && _MSC_VER >= 1800
+ #undef HAVE_ROUND
+ #endif