File: 0007-Enable-snappy.patch

package info (click to toggle)
numcodecs 0.11.0%2Bds-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 820 kB
  • sloc: python: 3,010; makefile: 216; sh: 8
file content (35 lines) | stat: -rw-r--r-- 1,177 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From: Antonio Valentino <antonio.valentino@tiscali.it>
Date: Sat, 5 Feb 2022 08:55:16 +0000
Subject: Enable snappy

Forwarded: not-needed
---
 numcodecs/tests/test_blosc.py | 1 +
 setup.py                      | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/numcodecs/tests/test_blosc.py b/numcodecs/tests/test_blosc.py
index 618894b..6f1b0ec 100644
--- a/numcodecs/tests/test_blosc.py
+++ b/numcodecs/tests/test_blosc.py
@@ -150,6 +150,7 @@ def test_compress_complib(use_threads):
         'lz4': 'LZ4',
         'lz4hc': 'LZ4',
         'blosclz': 'BloscLZ',
+        'snappy': 'Snappy',
         'zlib': 'Zlib',
         'zstd': 'Zstd',
     }
diff --git a/setup.py b/setup.py
index b1fed52..ef903fc 100644
--- a/setup.py
+++ b/setup.py
@@ -77,7 +77,7 @@ def blosc_extension():
     include_dirs += [d for d in glob('c-blosc/internal-complibs/*/*/*')
                      if os.path.isdir(d)]
     define_macros += [('HAVE_LZ4', 1),
-                      # ('HAVE_SNAPPY', 1),
+                      ('HAVE_SNAPPY', 1),
                       ('HAVE_ZLIB', 1),
                       ('HAVE_ZSTD', 1)]
     # define_macros += [('CYTHON_TRACE', '1')]