Make finding of NetCDF and HDF5 more explicit. (#18166)
Co-authored-by: Elizabeth Fischer <elizabeth.fischer@alaska.edu>
This commit is contained in:
parent
ccf94ded67
commit
306f3a1232
1 changed files with 4 additions and 0 deletions
|
@ -46,8 +46,12 @@ def setup_build_environment(self, env):
|
|||
"""Ensure installed netcdf and hdf5 libraries are used"""
|
||||
# Explicitly set these variables so setup.py won't erroneously pick up
|
||||
# system versions
|
||||
# See: http://unidata.github.io/netcdf4-python
|
||||
env.set('USE_SETUPCFG', '0')
|
||||
env.set('USE_NCCONFIG', '1')
|
||||
env.set('HDF5_DIR', self.spec['hdf5'].prefix)
|
||||
env.set('HDF5_INCDIR', self.spec['hdf5'].prefix.include)
|
||||
env.set('HDF5_LIBDIR', self.spec['hdf5'].prefix.lib)
|
||||
env.set('NETCDF4_DIR', self.spec['netcdf-c'].prefix)
|
||||
env.set('NETCDF4_INCDIR', self.spec['netcdf-c'].prefix.include)
|
||||
env.set('NETCDF4_LIBDIR', self.spec['netcdf-c'].prefix.lib)
|
||||
|
|
Loading…
Reference in a new issue