Files
MINGW-packages/mingw-w64-python-h5py/001-mingw-python.patch
Christoph Reiter 252864d108 h5py: drop broken patch
Not sure what that was trying to do, but H5_USE_16_API conflicts with
other things
2021-07-15 20:19:46 +02:00

18 lines
834 B
Diff

--- h5py-3.3.0/setup_configure.py.orig 2021-07-14 20:32:17.516742500 +0200
+++ h5py-3.3.0/setup_configure.py 2021-07-14 20:34:00.998030600 +0200
@@ -202,8 +202,12 @@
regexp = re.compile(r'^libhdf5.dylib')
elif sys.platform.startswith('win') or \
sys.platform.startswith('cygwin'):
- 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