Package: dask.distributed / 2.10.0+ds.1-3

reproducible-version.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Author: Diane Trout <diane@ghic.org>
Description: Use the Debian version for the software version.
 I think this is a source of non-determinism
Forwarded: not-needed

--- a/versioneer.py
+++ b/versioneer.py
@@ -1404,6 +1404,15 @@
         # see the discussion in cmdclass.py:get_cmdclass()
         del sys.modules["versioneer"]
 
+    import subprocess
+    debian_version = subprocess.check_output(('dpkg-parsechangelog', '-SVersion')).rstrip()
+    return {
+        'version': debian_version.decode('ascii').split('-', 1)[0],
+        'full-revisionid': debian_version.decode('ascii'),
+        'dirty': False,
+        'error': None
+    }
+
     root = get_root()
     cfg = get_config_from_root(root)