python-h5py: Update to 2.10.0

This commit is contained in:
Alexey Pavlov
2019-10-28 08:07:49 +03:00
parent 9a51e720d8
commit fcfb2d9a96
2 changed files with 21 additions and 5 deletions

View File

@@ -23,3 +23,20 @@
COMPILER_SETTINGS['include_dirs'].append(localpath('windows'))
COMPILER_SETTINGS['define_macros'].extend([
('_HDF5USEDLL_', None),
--- h5py-2.10.0/setup_configure.py.orig 2019-10-28 06:39:22.882866000 +0300
+++ h5py-2.10.0/setup_configure.py 2019-10-28 06:45:46.958833800 +0300
@@ -200,8 +200,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')
else:
default_path = 'libhdf5.so'
regexp = re.compile(r'^libhdf5.so')