openPMD-api: 0.13.0 (#20648)
Add the latest release of openPMD-api. Remove a selection of unsupported, pre-beta releases.
This commit is contained in:
parent
a5611e0466
commit
a3fb8e55d5
1 changed files with 12 additions and 16 deletions
|
@ -15,13 +15,9 @@ class OpenpmdApi(CMakePackage):
|
|||
maintainers = ['ax3l']
|
||||
|
||||
version('dev', branch='dev')
|
||||
version('0.12.0', tag='0.12.0-alpha')
|
||||
version('0.13.0', tag='0.13.0') # C++14 required
|
||||
version('0.12.0', tag='0.12.0-alpha') # C++11 up until here
|
||||
version('0.11.1', tag='0.11.1-alpha')
|
||||
version('0.11.0', tag='0.11.0-alpha')
|
||||
version('0.10.3', tag='0.10.3-alpha')
|
||||
version('0.10.2', tag='0.10.2-alpha')
|
||||
version('0.10.1', tag='0.10.1-alpha')
|
||||
version('0.10.0', tag='0.10.0-alpha')
|
||||
|
||||
variant('shared', default=True,
|
||||
description='Build a shared version of the library')
|
||||
|
@ -36,7 +32,7 @@ class OpenpmdApi(CMakePackage):
|
|||
variant('python', default=False,
|
||||
description='Enable Python bindings')
|
||||
|
||||
depends_on('cmake@3.12.0:', type='build')
|
||||
depends_on('cmake@3.15.0:', type='build')
|
||||
depends_on('mpark-variant@1.4.0:')
|
||||
depends_on('catch2@2.6.1:', type='test')
|
||||
depends_on('mpi@2.3:', when='+mpi') # might become MPI 3.0+
|
||||
|
@ -50,18 +46,14 @@ class OpenpmdApi(CMakePackage):
|
|||
depends_on('adios2@2.6.0:', when='+adios2 @0.12.0:')
|
||||
depends_on('adios2@2.5.0: ~mpi', when='~mpi +adios2')
|
||||
depends_on('adios2@2.5.0: +mpi', when='+mpi +adios2')
|
||||
depends_on('nlohmann-json@3.7.0:')
|
||||
depends_on('py-pybind11@2.3.0:', when='+python', type='link')
|
||||
depends_on('nlohmann-json@3.9.1:')
|
||||
depends_on('py-pybind11@2.6.1:', when='+python', type='link')
|
||||
depends_on('py-numpy@1.15.1:', when='+python', type=['test', 'run'])
|
||||
depends_on('py-mpi4py@2.1.0:', when='+python +mpi', type=['test', 'run'])
|
||||
depends_on('python@3.5:', when='+python', type=['link', 'test', 'run'])
|
||||
depends_on('python@3.6:', when='+python', type=['link', 'test', 'run'])
|
||||
|
||||
extends('python', when='+python')
|
||||
|
||||
# Fix breaking HDF5 1.12.0 API
|
||||
# https://github.com/openPMD/openPMD-api/pull/696
|
||||
patch('hdf5-1.12.0.patch', when='@:0.11.0 +hdf5')
|
||||
|
||||
def cmake_args(self):
|
||||
spec = self.spec
|
||||
|
||||
|
@ -89,8 +81,12 @@ def cmake_args(self):
|
|||
# switch internally shipped third-party libraries for spack
|
||||
if spec.satisfies('+python'):
|
||||
args.append('-DopenPMD_USE_INTERNAL_PYBIND11:BOOL=OFF')
|
||||
args.append('-DPYTHON_EXECUTABLE:FILEPATH={0}'.format(
|
||||
self.spec['python'].command.path))
|
||||
if spec.version >= Version('0.13.0'):
|
||||
args.append('-DPython_ROOT_DIR:FILEPATH={0}'.format(
|
||||
self.spec['python'].prefix))
|
||||
else:
|
||||
args.append('-DPYTHON_EXECUTABLE:FILEPATH={0}'.format(
|
||||
self.spec['python'].command.path))
|
||||
|
||||
args.extend([
|
||||
'-DopenPMD_USE_INTERNAL_JSON:BOOL=OFF',
|
||||
|
|
Loading…
Reference in a new issue