paraview: add LANL/TCE used variants for Paraview (#30336)
- Added +eyedomelighting - Added +pagosa - Added +fortran - Added pandas dependency and min version
This commit is contained in:
parent
bab41de538
commit
dd8f533e97
@ -51,6 +51,7 @@ class Paraview(CMakePackage, CudaPackage):
|
|||||||
description='Install include files for Catalyst or plugins support')
|
description='Install include files for Catalyst or plugins support')
|
||||||
variant('python', default=False, description='Enable Python support')
|
variant('python', default=False, description='Enable Python support')
|
||||||
variant('python3', default=False, description='Enable Python3 support')
|
variant('python3', default=False, description='Enable Python3 support')
|
||||||
|
variant('fortran', default=False, description='Enable Fortran support')
|
||||||
variant('mpi', default=True, description='Enable MPI support')
|
variant('mpi', default=True, description='Enable MPI support')
|
||||||
variant('osmesa', default=False, description='Enable OSMesa support')
|
variant('osmesa', default=False, description='Enable OSMesa support')
|
||||||
variant('qt', default=False, description='Enable Qt (gui) support')
|
variant('qt', default=False, description='Enable Qt (gui) support')
|
||||||
@ -61,6 +62,9 @@ class Paraview(CMakePackage, CudaPackage):
|
|||||||
description='Builds a shared version of the library')
|
description='Builds a shared version of the library')
|
||||||
variant('kits', default=True,
|
variant('kits', default=True,
|
||||||
description='Use module kits')
|
description='Use module kits')
|
||||||
|
variant('pagosa', default=False, description='Build the pagosa adaptor')
|
||||||
|
variant('eyedomelighting', default=False,
|
||||||
|
description='Enable Eye Dome Lighting feature')
|
||||||
variant('adios2', default=False,
|
variant('adios2', default=False,
|
||||||
description='Enable ADIOS2 support',
|
description='Enable ADIOS2 support',
|
||||||
when='@5.8:')
|
when='@5.8:')
|
||||||
@ -139,6 +143,7 @@ class Paraview(CMakePackage, CudaPackage):
|
|||||||
|
|
||||||
depends_on('py-matplotlib@:2', when='+python', type='run')
|
depends_on('py-matplotlib@:2', when='+python', type='run')
|
||||||
depends_on('py-matplotlib', when='+python3', type='run')
|
depends_on('py-matplotlib', when='+python3', type='run')
|
||||||
|
depends_on('py-pandas@0.21:', when='+python3', type='run')
|
||||||
|
|
||||||
depends_on('mpi', when='+mpi')
|
depends_on('mpi', when='+mpi')
|
||||||
depends_on('qt+opengl', when='@5.3.0:+qt+opengl2')
|
depends_on('qt+opengl', when='@5.3.0:+qt+opengl2')
|
||||||
@ -412,6 +417,9 @@ def nvariant_bool(feature):
|
|||||||
'-DPARAVIEW_QT_VERSION=%s' % spec['qt'].version[0],
|
'-DPARAVIEW_QT_VERSION=%s' % spec['qt'].version[0],
|
||||||
])
|
])
|
||||||
|
|
||||||
|
if '+fortran' in spec:
|
||||||
|
cmake_args.append('-DPARAVIEW_USE_FORTRAN:BOOL=ON')
|
||||||
|
|
||||||
# CMake flags for python have changed with newer ParaView versions
|
# CMake flags for python have changed with newer ParaView versions
|
||||||
# Make sure Spack uses the right cmake flags
|
# Make sure Spack uses the right cmake flags
|
||||||
if '+python' in spec or '+python3' in spec:
|
if '+python' in spec or '+python3' in spec:
|
||||||
@ -510,6 +518,12 @@ def nvariant_bool(feature):
|
|||||||
else:
|
else:
|
||||||
cmake_args.append('-DPARAVIEW_BUILD_WITH_KITS:BOOL=ON')
|
cmake_args.append('-DPARAVIEW_BUILD_WITH_KITS:BOOL=ON')
|
||||||
|
|
||||||
|
if '+pagosa' in spec:
|
||||||
|
cmake_args.append('-DPARAVIEW_BUILD_PAGOSA_ADAPTOR:BOOL=ON')
|
||||||
|
|
||||||
|
if '+eyedomelighting' in spec:
|
||||||
|
cmake_args.append('-DPARAVIEW_BUILD_PLUGIN_EyeDomeLighting:BOOL=ON')
|
||||||
|
|
||||||
# Hide git from Paraview so it will not use `git describe`
|
# Hide git from Paraview so it will not use `git describe`
|
||||||
# to find its own version number
|
# to find its own version number
|
||||||
if spec.satisfies('@5.4.0:5.4.1'):
|
if spec.satisfies('@5.4.0:5.4.1'):
|
||||||
|
Loading…
Reference in New Issue
Block a user