Files
MINGW-packages/mingw-w64-python-h5py/001-mingw-python.patch
2022-05-29 09:20:21 +05:30

18 lines
731 B
Diff

--- a/setup_configure.py
+++ b/setup_configure.py
@@ -224,8 +224,12 @@
default_path = 'libhdf5.dylib'
regexp = re.compile(r'^libhdf5.dylib')
elif sys.platform.startswith('win'):
- default_path = 'hdf5.dll'
- regexp = re.compile(r'^hdf5.dll')
+ if 'GCC' in sys.version:
+ default_path = 'libhdf5-0.dll'
+ regexp = re.compile(r'^libhdf5-[0-9].dll')
+ else:
+ default_path = 'hdf5.dll'
+ regexp = re.compile(r'^hdf5.dll')
if sys.version_info >= (3, 8):
# To overcome "difficulty" loading the library on windows
# https://bugs.python.org/issue42114