Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions pkgs/development/libraries/vtk/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
7 changes: 6 additions & 1 deletion pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19559,7 +19559,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 { };

Expand Down
Loading