paraview: include numpy in python environment
The Python filter functionality in Paraview requires numpy, which is currently not included. Changes are based on the discussion in issue #37118.
This commit is contained in:
parent
bacb2e216e
commit
dff672ec7c
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
stdenv, fetchFromGitHub, cmake
|
stdenv, fetchFromGitHub, cmake, makeWrapper
|
||||||
,qtbase, qttools, python, libGLU_combined
|
,qtbase, qttools, python, libGLU_combined
|
||||||
,libXt, qtx11extras, qtxmlpatterns
|
,libXt, qtx11extras, qtxmlpatterns
|
||||||
}:
|
}:
|
||||||
@ -18,11 +18,11 @@ stdenv.mkDerivation rec {
|
|||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DPARAVIEW_ENABLE_PYTHON=ON"
|
"-DPARAVIEW_ENABLE_PYTHON=ON"
|
||||||
"-DPARAVIEW_INSTALL_DEVELOPMENT_FILES=ON"
|
"-DPARAVIEW_INSTALL_DEVELOPMENT_FILES=ON"
|
||||||
"-DPARAVIEW_ENABLE_EMBEDDED_DOCUMENTATION=OFF"
|
"-DPARAVIEW_ENABLE_EMBEDDED_DOCUMENTATION=OFF"
|
||||||
];
|
];
|
||||||
|
|
||||||
# During build, binaries are called that rely on freshly built
|
# During build, binaries are called that rely on freshly built
|
||||||
# libraries. These reside in build/lib, and are not found by
|
# libraries. These reside in build/lib, and are not found by
|
||||||
@ -35,10 +35,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake
|
cmake
|
||||||
|
makeWrapper
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
python
|
python
|
||||||
|
python.pkgs.numpy
|
||||||
libGLU_combined
|
libGLU_combined
|
||||||
libXt
|
libXt
|
||||||
qtbase
|
qtbase
|
||||||
@ -47,6 +49,16 @@ stdenv.mkDerivation rec {
|
|||||||
qtxmlpatterns
|
qtxmlpatterns
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Paraview links into the Python library, resolving symbolic links on the way,
|
||||||
|
# so we need to put the correct sitePackages (with numpy) back on the path
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram $out/bin/paraview \
|
||||||
|
--set PYTHONPATH "${python.pkgs.numpy}/${python.sitePackages}"
|
||||||
|
wrapProgram $out/bin/pvbatch \
|
||||||
|
--set PYTHONPATH "${python.pkgs.numpy}/${python.sitePackages}"
|
||||||
|
wrapProgram $out/bin/pvpython \
|
||||||
|
--set PYTHONPATH "${python.pkgs.numpy}/${python.sitePackages}"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://www.paraview.org/;
|
homepage = http://www.paraview.org/;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user