Commit 8833a76d authored by qbisi's avatar qbisi
Browse files

python3Packages.vtk: use pythonRecompileBytecodeHook

parent e92102e9
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -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;