h5py/h5py-system-lzf.patch

37 lines
1.4 KiB
Diff
Raw Normal View History

2014-04-23 03:25:02 +00:00
diff -up h5py-2.3.0/lzf/lzf_filter.c.lzf h5py-2.3.0/lzf/lzf_filter.c
--- h5py-2.3.0/lzf/lzf_filter.c.lzf 2014-04-22 07:00:04.000000000 -0600
+++ h5py-2.3.0/lzf/lzf_filter.c 2014-04-22 21:14:07.109003123 -0600
2012-01-24 10:41:07 +00:00
@@ -26,7 +26,7 @@
#include <stdio.h>
#include <errno.h>
#include "hdf5.h"
-#include "lzf/lzf.h"
+#include "lzf.h"
#include "lzf_filter.h"
/* Our own versions of H5Epush_sim, as it changed in 1.8 */
2014-04-23 03:25:02 +00:00
diff -up h5py-2.3.0/setup.py.lzf h5py-2.3.0/setup.py
--- h5py-2.3.0/setup.py.lzf 2014-04-22 07:00:04.000000000 -0600
+++ h5py-2.3.0/setup.py 2014-04-22 21:14:25.104369896 -0600
@@ -146,7 +146,7 @@ if sys.platform.startswith('win'):
shutil.copy(op.join(HDF5, 'bin', f), localpath('h5py', f))
2012-01-24 10:41:07 +00:00
else:
COMPILER_SETTINGS = {
2012-12-06 18:29:13 +00:00
- 'libraries' : ['hdf5', 'hdf5_hl'],
+ 'libraries' : ['hdf5', 'hdf5_hl', 'lzf'],
2014-04-23 03:25:02 +00:00
'include_dirs' : [localpath('lzf')],
2012-01-24 10:41:07 +00:00
'library_dirs' : [],
'define_macros' : [('H5_USE_16_API', None)]
2014-04-23 03:25:02 +00:00
@@ -193,9 +193,8 @@ if HAVE_CYTHON:
2013-09-26 18:26:47 +00:00
else:
configure.printerr("Cython not present; building for HDF5 1.8.4+")
2012-01-24 10:41:07 +00:00
2012-12-06 18:29:13 +00:00
-EXTRA_SRC = {'h5z': [ localpath("lzf/lzf_filter.c"),
2012-01-24 10:41:07 +00:00
- localpath("lzf/lzf/lzf_c.c"),
- localpath("lzf/lzf/lzf_d.c")]}
+EXTRA_SRC = {'h5z': [ localpath("lzf/lzf_filter.c")]}
2012-12-06 18:29:13 +00:00
+
2012-01-24 10:41:07 +00:00
def make_extension(module):
sources = [op.join('h5py', module+SUFFIX)] + EXTRA_SRC.get(module, [])