[python-dtcwt] 07/38: docs: allow reproducible/deterministic builds
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Tue Mar 8 11:39:17 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository python-dtcwt.
commit f2b27f93e1d1b485354fa9b2527fe7857e4a8e36
Author: Rich Wareham <rjw57 at cam.ac.uk>
Date: Tue Aug 4 12:17:23 2015 +0100
docs: allow reproducible/deterministic builds
Based the patch in [1], explicitly set the random seed used by numpy to make
sure that the documentation builds are reproducible.
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=794005
---
docs/conf.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/docs/conf.py b/docs/conf.py
index 077379d..07b6f7e 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -26,6 +26,10 @@ project = setup_cfg.get('metadata', 'name')
import dtcwt
version = release = dtcwt.__version__
+# Ensure a deterministic build by setting the random seed
+import numpy
+numpy.random.seed(0)
+
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-dtcwt.git
More information about the debian-science-commits
mailing list