-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd29a54
commit 7447fb0
Showing
15 changed files
with
86 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Description: Fix path for the installation of python modules | ||
Author: Anton Gladky <[email protected]> | ||
Last-Update: 2020-11-06 | ||
|
||
Index: vtk9-9.0.1+dfsg1/CMake/vtkModuleWrapPython.cmake | ||
=================================================================== | ||
--- vtk9-9.0.1+dfsg1.orig/CMake/vtkModuleWrapPython.cmake | ||
+++ vtk9-9.0.1+dfsg1/CMake/vtkModuleWrapPython.cmake | ||
@@ -84,7 +84,7 @@ function (vtk_module_python_default_dest | ||
"for Python modules.") | ||
set(_vtk_python_version_suffix) | ||
endif () | ||
- set(destination "${CMAKE_INSTALL_LIBDIR}/python${_vtk_python_version_suffix}/site-packages") | ||
+ set(destination "lib/python3/dist-packages") | ||
endif () | ||
|
||
set("${var}" "${destination}" PARENT_SCOPE) | ||
Index: vtk9-9.0.1+dfsg1/Utilities/Python/CMakeLists.txt | ||
=================================================================== | ||
--- vtk9-9.0.1+dfsg1.orig/Utilities/Python/CMakeLists.txt | ||
+++ vtk9-9.0.1+dfsg1/Utilities/Python/CMakeLists.txt | ||
@@ -77,7 +77,7 @@ if (NOT VTK_PYTHON_SITE_PACKAGES_SUFFIX) | ||
set(VTK_PYTHON_SITE_PACKAGES_SUFFIX "Lib/site-packages") | ||
else () | ||
set(VTK_PYTHON_SITE_PACKAGES_SUFFIX | ||
- "python${vtk_python_version_pair}/site-packages") | ||
+ "python3/dist-packages") | ||
endif () | ||
endif () | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Description: Fix python numpy warning | ||
Author: Anton Gladky <[email protected]> | ||
Last-Update: 2020-11-09 | ||
|
||
--- vtk9-9.0.1+dfsg1.orig/Wrapping/Python/vtkmodules/numpy_interface/algorithms.py | ||
+++ vtk9-9.0.1+dfsg1/Wrapping/Python/vtkmodules/numpy_interface/algorithms.py | ||
@@ -206,7 +206,7 @@ def _global_func(impl, array, axis, cont | ||
return dsa.NoneArray; | ||
|
||
if res is dsa.NoneArray: | ||
- if max_dims is 1: | ||
+ if max_dims == 1: | ||
# Weird trick to make the array look like a scalar | ||
max_dims = () | ||
res = numpy.empty(max_dims) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
From 1233ceec268d5366c66f5e79786ec784042b591b Mon Sep 17 00:00:00 2001 | ||
From: Laurent Rineau <[email protected]> | ||
Date: Tue, 17 Jan 2023 16:18:53 +0100 | ||
Subject: Add #include <cstdint> to compile with gcc13 | ||
Origin: upstream, https://gitlab.kitware.com/vtk/vtk/-/commit/1233ceec268d5366c66f5e79786ec784042b591b | ||
|
||
The `vtkSEPReader` was introduced by MRs !4909 (from my former | ||
collaborator Maxime) and !4938. Then it was highly modified by | ||
!7516. The later MR is the one that introduced the uses of | ||
`std::uint8_t` and `std::uint32_t`. | ||
|
||
Those types needs the inclusion of `<cstdint>`. | ||
--- | ||
IO/Image/vtkSEPReader.h | 5 +++-- | ||
1 file changed, 3 insertions(+), 2 deletions(-) | ||
|
||
--- vtk9.orig/IO/Image/vtkSEPReader.h | ||
+++ vtk9/IO/Image/vtkSEPReader.h | ||
@@ -25,8 +25,9 @@ | ||
#include "vtkImageAlgorithm.h" | ||
#include "vtkNew.h" // for ivars | ||
|
||
-#include <array> // for std::array | ||
-#include <string> // for std::string | ||
+#include <array> // for std::array | ||
+#include <cstdint> // for std::uint8_t and std::uint32_t | ||
+#include <string> // for std::string | ||
|
||
namespace details | ||
{ |