summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJon Rood <jon.rood@nrel.gov>2019-02-06 11:45:14 -0700
committerPeter Scheibel <scheibel1@llnl.gov>2019-02-06 12:45:14 -0600
commit11c52c3bf7a8a1a636abe8f8bf2ae0427044429f (patch)
treeaa536351c79e3af69c60ef402e1c30fb5a630755 /var
parentd9d75635c7961e8ab204ebf03b4d3f904855df80 (diff)
downloadspack-11c52c3bf7a8a1a636abe8f8bf2ae0427044429f.tar.gz
spack-11c52c3bf7a8a1a636abe8f8bf2ae0427044429f.tar.bz2
spack-11c52c3bf7a8a1a636abe8f8bf2ae0427044429f.tar.xz
spack-11c52c3bf7a8a1a636abe8f8bf2ae0427044429f.zip
Paraview package: update PYTHONPATH for dependents (#10501)
Add vtkmodules directory to PYTHONPATH in Paraview for Trilinos
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/paraview/package.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/paraview/package.py b/var/spack/repos/builtin/packages/paraview/package.py
index 2011323d0c..19ebbf6a57 100644
--- a/var/spack/repos/builtin/packages/paraview/package.py
+++ b/var/spack/repos/builtin/packages/paraview/package.py
@@ -127,9 +127,14 @@ class Paraview(CMakePackage):
run_env.prepend_path('PYTHONPATH', join_path(pv_pydir, 'vtk'))
else:
python_version = self.spec['python'].version.up_to(2)
- run_env.prepend_path('PYTHONPATH', join_path(lib_dir,
+ pv_pydir = join_path(lib_dir,
'python{0}'.format(python_version),
- 'site-packages'))
+ 'site-packages')
+ run_env.prepend_path('PYTHONPATH', pv_pydir)
+ # The Trilinos Catalyst adapter requires
+ # the vtkmodules directory in PYTHONPATH
+ run_env.prepend_path('PYTHONPATH', join_path(pv_pydir,
+ 'vtkmodules'))
def cmake_args(self):
"""Populate cmake arguments for ParaView."""