| 1 |
From: =?utf-8?q?Picca_Fr=C3=A9d=C3=A9ric-Emmanuel?= <[email protected]> |
| 2 |
Date: Fri, 15 May 2020 08:40:23 +0200 |
| 3 |
Subject: use the system lz4 |
| 4 |
|
| 5 |
--- |
| 6 |
setup.py | 14 ++++---------- |
| 7 |
1 file changed, 4 insertions(+), 10 deletions(-) |
| 8 |
|
| 9 |
diff --git a/setup.py b/setup.py |
| 10 |
index 74287f0..4fd50aa 100644 |
| 11 |
--- a/setup.py |
| 12 |
+++ b/setup.py |
| 13 |
@@ -139,12 +139,10 @@ ext_bshuf = Extension( |
| 14 |
"src/bitshuffle.c", |
| 15 |
"src/bitshuffle_core.c", |
| 16 |
"src/iochain.c", |
| 17 |
- "lz4/lz4.c", |
| 18 |
], |
| 19 |
- include_dirs=["src/", "lz4/"], |
| 20 |
- depends=["src/bitshuffle.h", "src/bitshuffle_core.h", "src/iochain.h", "lz4/lz4.h"], |
| 21 |
- libraries=[], |
| 22 |
+ depends=["src/bitshuffle.h", "src/bitshuffle_core.h", "src/iochain.h"], |
| 23 |
define_macros=MACROS, |
| 24 |
+ **pkgconfig("liblz4", config=dict(include_dirs=["src/"])) |
| 25 |
) |
| 26 |
|
| 27 |
h5filter = Extension( |
| 28 |
@@ -155,17 +153,15 @@ h5filter = Extension( |
| 29 |
"src/bitshuffle.c", |
| 30 |
"src/bitshuffle_core.c", |
| 31 |
"src/iochain.c", |
| 32 |
- "lz4/lz4.c", |
| 33 |
], |
| 34 |
depends=[ |
| 35 |
"src/bitshuffle.h", |
| 36 |
"src/bitshuffle_core.h", |
| 37 |
"src/iochain.h", |
| 38 |
"src/bshuf_h5filter.h", |
| 39 |
- "lz4/lz4.h", |
| 40 |
], |
| 41 |
define_macros=MACROS + [("H5_USE_18_API", None)], |
| 42 |
- **pkgconfig("hdf5", config=dict(include_dirs=["src/", "lz4/"])) |
| 43 |
+ **pkgconfig("hdf5", "liblz4", config=dict(include_dirs=["src/"])) |
| 44 |
) |
| 45 |
|
| 46 |
if not sys.platform.startswith("win"): |
| 47 |
@@ -180,17 +176,15 @@ filter_plugin = Extension( |
| 48 |
"src/bitshuffle.c", |
| 49 |
"src/bitshuffle_core.c", |
| 50 |
"src/iochain.c", |
| 51 |
- "lz4/lz4.c", |
| 52 |
], |
| 53 |
depends=[ |
| 54 |
"src/bitshuffle.h", |
| 55 |
"src/bitshuffle_core.h", |
| 56 |
"src/iochain.h", |
| 57 |
"src/bshuf_h5filter.h", |
| 58 |
- "lz4/lz4.h", |
| 59 |
], |
| 60 |
define_macros=MACROS, |
| 61 |
- **pkgconfig("hdf5", config=dict(include_dirs=["src/", "lz4/"])) |
| 62 |
+ **pkgconfig("hdf5", "liblz4", config=dict(include_dirs=["src/"])) |
| 63 |
) |
| 64 |
|
| 65 |
lzf_plugin = Extension( |