From e758820ed72cc8bbd7ac5157b9e00ba6f369b7db Mon Sep 17 00:00:00 2001 From: dorier Date: Mon, 14 May 2018 03:54:12 +0100 Subject: boost: added the +numpy variant which enables building libboost_numpy (#8104) * added the +numpy variant which enables building the libboost_numpy libraries * Update package.py Added `type=('build', 'run')` --- var/spack/repos/builtin/packages/boost/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/spack/repos/builtin/packages/boost/package.py b/var/spack/repos/builtin/packages/boost/package.py index fb1ade8bcc..5666df8baa 100644 --- a/var/spack/repos/builtin/packages/boost/package.py +++ b/var/spack/repos/builtin/packages/boost/package.py @@ -144,14 +144,18 @@ class Boost(Package): description="Augment library layout with versioned subdirs") variant('clanglibcpp', default=False, description='Compile with clang libc++ instead of libstdc++') + variant('numpy', default=False, + description='Build the Boost NumPy library (requires +python)') depends_on('icu4c', when='+icu') depends_on('python', when='+python') depends_on('mpi', when='+mpi') depends_on('bzip2', when='+iostreams') depends_on('zlib', when='+iostreams') + depends_on('py-numpy', when='+numpy', type=('build', 'run')) conflicts('+taggedlayout', when='+versionedlayout') + conflicts('+numpy', when='~python') # Patch fix from https://svn.boost.org/trac/boost/ticket/11856 patch('boost_11856.patch', when='@1.60.0%gcc@4.4.7') -- cgit v1.2.3-70-g09d2