diff options
author | Jeffrey Salmond <js947@users.noreply.github.com> | 2016-10-06 10:29:25 +0100 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-10-06 02:29:25 -0700 |
commit | a648dc6b334e8a170beab7d983130debc2ea9db1 (patch) | |
tree | 6466e8ce7bfc4dcc62eb6ecb3e2848f6625342c3 /var | |
parent | 2966f174aeb84587301ffdd5609f1434b0c193f9 (diff) | |
download | spack-a648dc6b334e8a170beab7d983130debc2ea9db1.tar.gz spack-a648dc6b334e8a170beab7d983130debc2ea9db1.tar.bz2 spack-a648dc6b334e8a170beab7d983130debc2ea9db1.tar.xz spack-a648dc6b334e8a170beab7d983130debc2ea9db1.zip |
add python options to vtk package (#1931)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/vtk/package.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/vtk/package.py b/var/spack/repos/builtin/packages/vtk/package.py index f7015904b0..fe3ebc9536 100644 --- a/var/spack/repos/builtin/packages/vtk/package.py +++ b/var/spack/repos/builtin/packages/vtk/package.py @@ -42,12 +42,16 @@ class Vtk(Package): patch("gcc.patch") + extends('python', when='+python') + depends_on('python', when='+python') depends_on('cmake', type='build') depends_on("qt") # VTK7 defaults to OpenGL2 rendering backend variant('opengl2', default=True, description='Build with OpenGL instead of OpenGL2 backend') + variant('python', default=False, + description='Build the python modules') def install(self, spec, prefix): def feature_to_bool(feature, on='ON', off='OFF'): @@ -59,8 +63,8 @@ class Vtk(Package): cmake_args = [ "..", "-DBUILD_SHARED_LIBS=ON", + "-DVTK_WRAP_PYTHON=" + ("ON" if "+python" in spec else "OFF"), # Disable wrappers for other languages. - "-DVTK_WRAP_PYTHON=OFF", "-DVTK_WRAP_JAVA=OFF", "-DVTK_WRAP_TCL=OFF"] cmake_args.extend(std_cmake_args) |