| 1 |
From: =?utf-8?q?Picca_Fr=C3=A9d=C3=A9ric-Emmanuel?= <[email protected]> |
| 2 |
Date: Thu, 14 May 2020 12:07:41 +0200 |
| 3 |
Subject: use the system liblzf |
| 4 |
|
| 5 |
--- |
| 6 |
lzf/lzf_filter.c | 2 +- |
| 7 |
setup.py | 6 ++---- |
| 8 |
2 files changed, 3 insertions(+), 5 deletions(-) |
| 9 |
|
| 10 |
diff --git a/lzf/lzf_filter.c b/lzf/lzf_filter.c |
| 11 |
index 1da12e9..b95d241 100644 |
| 12 |
--- a/lzf/lzf_filter.c |
| 13 |
+++ b/lzf/lzf_filter.c |
| 14 |
@@ -26,7 +26,7 @@ |
| 15 |
#include <stdio.h> |
| 16 |
#include <errno.h> |
| 17 |
#include "hdf5.h" |
| 18 |
-#include "lzf/lzf.h" |
| 19 |
+#include "lzf.h" |
| 20 |
#include "lzf_filter.h" |
| 21 |
|
| 22 |
/* Our own versions of H5Epush_sim, as it changed in 1.8 */ |
| 23 |
diff --git a/setup.py b/setup.py |
| 24 |
index 7b4b3ad..74287f0 100644 |
| 25 |
--- a/setup.py |
| 26 |
+++ b/setup.py |
| 27 |
@@ -198,11 +198,9 @@ lzf_plugin = Extension( |
| 28 |
sources=[ |
| 29 |
"src/lzf_h5plugin.c", |
| 30 |
"lzf/lzf_filter.c", |
| 31 |
- "lzf/lzf/lzf_c.c", |
| 32 |
- "lzf/lzf/lzf_d.c", |
| 33 |
], |
| 34 |
- depends=["lzf/lzf_filter.h", "lzf/lzf/lzf.h", "lzf/lzf/lzfP.h"], |
| 35 |
- **pkgconfig("hdf5", config=dict(include_dirs=["lzf/", "lzf/lzf/"])) |
| 36 |
+ depends=["lzf/lzf_filter.h"], |
| 37 |
+ **pkgconfig("hdf5", "liblzf", config=dict(include_dirs=["lzf/"])) |
| 38 |
) |
| 39 |
|
| 40 |
|