18 lines
834 B
Diff
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
|