[h5py] 435/455: Fix load-time error by restricting HDF5 < 1.8.2 to 1.6 interface

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Jul 2 18:19:58 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to annotated tag 1.3.0
in repository h5py.

commit e1df7bfdec1c603771f8e14bc52223ae9a43e890
Author: andrewcollette <andrew.collette at gmail.com>
Date:   Mon Mar 1 22:17:13 2010 +0000

    Fix load-time error by restricting HDF5 < 1.8.2 to 1.6 interface
---
 setup.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/setup.py b/setup.py
index 5bbde72..9d39f87 100644
--- a/setup.py
+++ b/setup.py
@@ -363,6 +363,13 @@ class hbuild_ext(build_ext):
 
         api = API if API is not None else config['vers'][0:2]
 
+        if api == (1,8) and config['vers'] in [(1,8,0), (1,8,1)]:
+            warn('!'*42)
+            warn('HDF5 1.8 features require HDF5 1.8.2 or later')
+            warn('Forcing API to emulate HDF5 1.6')
+            warn('!'*42)
+            api = (1,6)
+
         if hdf5 is None:
             autostr = "(path not specified)"
         else:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/h5py.git



More information about the debian-science-commits mailing list