python-h5py/Fix-wrong-file-driver-version-error.patch

25 lines
680 B
Diff
Raw Normal View History

From dbb202c14f91fd3d70735ffd6ef5737c12e88f4e Mon Sep 17 00:00:00 2001
From: Aleksandar Jelenak <ajelenak@hdfgroup.org>
Date: Sat, 17 Dec 2022 22:19:56 -0500
Subject: [PATCH] Fix wrong file driver version error
---
h5py/h5fd.pyx | 2 ++
1 file changed, 2 insertions(+)
diff --git a/h5py/h5fd.pyx b/h5py/h5fd.pyx
index 04aff077..e9746057 100644
--- a/h5py/h5fd.pyx
+++ b/h5py/h5fd.pyx
@@ -216,5 +216,7 @@ info.fl_map = [H5FD_MEM_SUPER, # default
H5FD_MEM_SUPER, # lheap
H5FD_MEM_SUPER # ohdr
]
+IF HDF5_VERSION >= (1, 14, 0):
+ info.version = H5FD_CLASS_VERSION
fileobj_driver = H5FDregister(&info)
--
2.39.2 (Apple Git-143)