Skip to content

Commit

Permalink
CPATH is now searched to find the HDF5 headers
Browse files Browse the repository at this point in the history
  • Loading branch information
jrs65 committed Apr 16, 2018
1 parent 11f3da4 commit e0df7c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Expand Up @@ -155,7 +155,8 @@ def pkgconfig(*packages, **kw):
EXTENSIONS = [ext_bshuf, h5filter]
# Check for plugin hdf5 plugin support (hdf5 >= 1.8.11)
HDF5_PLUGIN_SUPPORT = False
for p in ["/usr/include"] + pkgconfig("hdf5")["include_dirs"]:
CPATHS = os.environ['CPATH'].split(':') if 'CPATH' in os.environ else []
for p in ["/usr/include"] + pkgconfig("hdf5")["include_dirs"] + CPATHS:
if os.path.exists(os.path.join(p, "H5PLextern.h")):
HDF5_PLUGIN_SUPPORT = True

Expand Down

0 comments on commit e0df7c5

Please sign in to comment.