File: relax_hdf5_version_test.patch

package info (click to toggle)
h5py 3.15.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,716 kB
  • sloc: python: 11,528; ansic: 578; makefile: 432; sh: 33
file content (13 lines) | stat: -rw-r--r-- 607 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: h5py/h5py/__init__.py
===================================================================
--- h5py.orig/h5py/__init__.py	2021-08-24 16:51:44.055509270 +0200
+++ h5py/h5py/__init__.py	2021-11-04 01:53:54.049314999 +0100
@@ -32,7 +32,7 @@
 
 from . import version
 
-if version.hdf5_version_tuple != version.hdf5_built_version_tuple:
+if version.hdf5_version_tuple[0:2] != version.hdf5_built_version_tuple[0:2]:
     _warn(("h5py is running against HDF5 {0} when it was built against {1}, "
            "this may cause problems").format(
             '{0}.{1}.{2}'.format(*version.hdf5_version_tuple),