python3Packages.vtk: disable mpiSupport/qtSupport (#433853)

This commit is contained in:
Nick Cao
2025-08-15 16:47:42 -04:00
committed by GitHub
2 changed files with 10 additions and 7 deletions
+4 -6
View File
@@ -140,7 +140,10 @@ stdenv.mkDerivation (finalAttrs: {
cmake
pkg-config # required for finding MySQl
]
++ lib.optional pythonSupport python3Packages.python
++ lib.optionals pythonSupport [
python3Packages.python
python3Packages.pythonRecompileBytecodeHook
]
++ lib.optional (
pythonSupport && stdenv.buildPlatform == stdenv.hostPlatform
) python3Packages.pythonImportsCheckHook;
@@ -288,11 +291,6 @@ stdenv.mkDerivation (finalAttrs: {
(vtkBool "VTK_GROUP_ENABLE_MPI" mpiSupport)
];
# byte-compile python modules since the CMake build does not do it
postInstall = lib.optionalString pythonSupport ''
python -m compileall -s $out $out/${python3Packages.python.sitePackages}
'';
pythonImportsCheck = [ "vtk" ];
dontWrapQtApps = true;
+6 -1
View File
@@ -19565,7 +19565,12 @@ self: super: with self; {
vtjp = callPackage ../development/python-modules/vtjp { };
vtk = toPythonModule (pkgs.vtk-full.override { python3Packages = self; });
vtk = toPythonModule (
pkgs.vtk.override {
pythonSupport = true;
python3Packages = self;
}
);
vttlib = callPackage ../development/python-modules/vttlib { };