summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan R. Madsen <jrmadsen@users.noreply.github.com>2020-09-30 17:24:26 -0700
committerGitHub <noreply@github.com>2020-09-30 19:24:26 -0500
commit5c6153ce0dabe2989bc1c9b7e8a349cb6ff62fcb (patch)
tree5b2a03c950527030fe930c570e8081adae694974
parent075c3e0d9247e9c1716ac44e7052366ac59ff110 (diff)
downloadspack-5c6153ce0dabe2989bc1c9b7e8a349cb6ff62fcb.tar.gz
spack-5c6153ce0dabe2989bc1c9b7e8a349cb6ff62fcb.tar.bz2
spack-5c6153ce0dabe2989bc1c9b7e8a349cb6ff62fcb.tar.xz
spack-5c6153ce0dabe2989bc1c9b7e8a349cb6ff62fcb.zip
timemory: created +python_deps variant (#18472)
* Created +python_deps variant - the timemory python bindings can still be imported without these runtime packages and forcing a dependence by default significantly increases the spack install time * Added conflict - added conflicts('+python_deps', when='~python')
-rw-r--r--var/spack/repos/builtin/packages/timemory/package.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/timemory/package.py b/var/spack/repos/builtin/packages/timemory/package.py
index 96de85cfe9..7add541617 100644
--- a/var/spack/repos/builtin/packages/timemory/package.py
+++ b/var/spack/repos/builtin/packages/timemory/package.py
@@ -25,6 +25,9 @@ class Timemory(CMakePackage):
variant('shared', default=True, description='Build shared libraries')
variant('static', default=False, description='Build static libraries')
variant('python', default=False, description='Enable Python support')
+ variant('python_deps', default=False,
+ description='Install non-critical python dependencies '
+ '(may significantly increase spack install time)')
variant('mpi', default=False,
description='Enable support for MPI aggregation')
variant('nccl', default=False,
@@ -92,12 +95,12 @@ class Timemory(CMakePackage):
extends('python', when='+python')
depends_on('python@3:', when='+python', type=('build', 'run'))
- depends_on('py-numpy', when='+python', type=('run'))
- depends_on('pil', when='+python', type=('run'))
- depends_on('py-matplotlib', when='+python', type=('run'))
- depends_on('py-mpi4py', when='+python+mpi', type=('run'))
depends_on('py-cython', when='+python', type=('build'))
- depends_on('py-ipython', when='+python', type=('run'))
+ depends_on('pil', when='+python+python_deps', type=('run'))
+ depends_on('py-numpy', when='+python+python_deps', type=('run'))
+ depends_on('py-matplotlib', when='+python+python_deps', type=('run'))
+ depends_on('py-ipython', when='+python+python_deps', type=('run'))
+ depends_on('py-mpi4py', when='+python+mpi+python_deps', type=('run'))
depends_on('mpi', when='+mpi')
depends_on('nccl', when='+nccl')
depends_on('tau', when='+tau')
@@ -117,6 +120,7 @@ class Timemory(CMakePackage):
conflicts('+python', when='~shared',
msg='+python requires building shared libraries')
+ conflicts('+python_deps', when='~python')
conflicts('+cupti', when='~cuda', msg='CUPTI requires CUDA')
conflicts('+kokkos_tools', when='~tools',
msg='+kokkos_tools requires +tools')