summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Huebl <axel.huebl@plasma.ninja>2018-06-20 18:24:41 +0200
committerAdam J. Stewart <ajstewart426@gmail.com>2018-06-20 11:24:41 -0500
commit5b309ea6ac4a65ecf8db3ac70399a828f2c6d5ab (patch)
treeeffed5c80d2eb6e99d1447e782831922bc569fa2
parente6834301b9b11fc0fb3e82b6ea448a753981340f (diff)
downloadspack-5b309ea6ac4a65ecf8db3ac70399a828f2c6d5ab.tar.gz
spack-5b309ea6ac4a65ecf8db3ac70399a828f2c6d5ab.tar.bz2
spack-5b309ea6ac4a65ecf8db3ac70399a828f2c6d5ab.tar.xz
spack-5b309ea6ac4a65ecf8db3ac70399a828f2c6d5ab.zip
openPMD-api: update dependencies (#8528)
update the dependencies of openPMD-api
-rw-r--r--var/spack/repos/builtin/packages/openpmd-api/package.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/openpmd-api/package.py b/var/spack/repos/builtin/packages/openpmd-api/package.py
index 533f08c74b..d2d032a3e7 100644
--- a/var/spack/repos/builtin/packages/openpmd-api/package.py
+++ b/var/spack/repos/builtin/packages/openpmd-api/package.py
@@ -62,7 +62,8 @@ class OpenpmdApi(CMakePackage):
depends_on('adios2@2.1.0: ~mpi', when='~mpi +adios2')
depends_on('adios2@2.1.0: +mpi', when='+mpi +adios2')
# ideally we want 2.3.0+ for full C++11 CT function signature support
- depends_on('py-pybind11@2.2.1:', when='+python')
+ depends_on('py-pybind11@2.2.3:', when='+python')
+ depends_on('py-numpy', when='+python', type=['test', 'run'])
extends('python', when='+python')
@@ -83,11 +84,15 @@ class OpenpmdApi(CMakePackage):
# 'ON' if '+json' in spec else 'OFF'),
'-DopenPMD_USE_PYTHON:BOOL={0}'.format(
'ON' if '+python' in spec else 'OFF'),
+ # tests and examples
'-DBUILD_TESTING:BOOL={0}'.format(
- 'ON' if self.run_tests else 'OFF')
+ 'ON' if self.run_tests else 'OFF'),
+ '-DBUILD_EXAMPLES:BOOL={0}'.format(
+ 'ON' if self.run_tests else 'OFF'),
]
if spec.satisfies('+python'):
+ args.append('-DopenPMD_USE_INTERNAL_PYBIND11:BOOL=OFF')
args.append('-DPYTHON_EXECUTABLE:FILEPATH={0}'.format(
self.spec['python'].command.path))