Added path to netcdf and hdf5 using the env vars NETCDF_DIR and HDF5_DIR.
This commit is contained in:
parent
fceb5a75b0
commit
8f56f5cfcc
@ -1,8 +1,10 @@
|
|||||||
from spack import *
|
import os
|
||||||
|
|
||||||
|
from spack import *
|
||||||
class Adios(Package):
|
class Adios(Package):
|
||||||
"""The Adaptable IO System (ADIOS) provides a simple,
|
"""The Adaptable IO System (ADIOS) provides a simple,
|
||||||
flexible way for scientists to describe the data in their code that may need to be written,
|
flexible way for scientists to describe the
|
||||||
|
data in their code that may need to be written,
|
||||||
read, or processed outside of the running simulation
|
read, or processed outside of the running simulation
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@ -19,10 +21,12 @@ class Adios(Package):
|
|||||||
depends_on('mxml')
|
depends_on('mxml')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
configure_args = ["--prefix=%s" % prefix, "--with-mxml=%s" % spec['mxml'].prefix,
|
configure_args = ["--prefix=%s" % prefix,
|
||||||
"--with-hdf5=%s" % spec['hdf5'].prefix, "--with-netcdf=%s" % os.environ['NETCDF_DIR'],
|
"--with-mxml=%s" % spec['mxml'].prefix,
|
||||||
|
"--with-hdf5="+os.environ["HDF5_DIR"],
|
||||||
|
"--with-netcdf="+os.environ["NETCDF_DIR"],
|
||||||
"--with-infiniband=no"]
|
"--with-infiniband=no"]
|
||||||
|
|
||||||
configure(*configure_args)
|
configure(*configure_args)
|
||||||
make()
|
make()
|
||||||
make("install")
|
make("install")
|
||||||
|
Loading…
Reference in New Issue
Block a user