File: 0006-Reproducible-build.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 (30 lines) | stat: -rw-r--r-- 866 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
From: Chris Lamb <lamby@debian.org>
Date: Thu, 26 Aug 2021 06:59:42 +0000
Subject: Make the build reproducible

Last-Update: 2021-08-23
Forwarded: not-needed
---
 numcodecs/zfpy.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/numcodecs/zfpy.py b/numcodecs/zfpy.py
index ac09074..98cf148 100644
--- a/numcodecs/zfpy.py
+++ b/numcodecs/zfpy.py
@@ -33,12 +33,14 @@ if _zfpy:
 
         def __init__(
             self,
-            mode=_zfpy.mode_fixed_accuracy,
+            mode=None,
             tolerance=-1,
             rate=-1,
             precision=-1,
             compression_kwargs=None,
         ):
+            if mode is None:
+                mode = _zfpy.mode_fixed_accuracy
             self.mode = mode
             if mode == _zfpy.mode_fixed_accuracy:
                 self.compression_kwargs = {"tolerance": tolerance}