def try_from_h5cc():
    """Try locate hdf5 from the h5cc tool"""
    import subprocess as sp
    import sys
    try:
        h5cc = sp.Popen(['h5cc', '-show'], stdout=sp.PIPE)
    except OSError:
        return False, [None, None]
    while h5cc.poll() is None:
        pass
    if h5cc.poll():
        return False, [None, None]
    args = h5cc.stdout.readlines()[0]
    if sys.version_info[0] > 2:
        args = args.decode('utf-8')
    args = args.split(' ')
    incs = ''
    libs = ''
    for arg in args:
        if arg.startswith('-I'):
            incs += ':' + arg[2:]
        elif arg.startswith('-L'):
            libs += ':' + arg[2:]
    return True, [incs[1:], libs[1:]]
