Source: flask-peewee
Version: 0.6.7-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: buildpath
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed
that flask-peewee could not be built reproducibly.
This is because it generates Python "doctree" files. These are pickled
caches of the source *.rst documents which are not needed to display
the docs correctly (we only need the contents of the html/ folder or
the manpages themselves) and they contain absolute build paths which
are not reproducible.
Patch attached that does not install the .doctree files, additionally
speeding up the build (!) by actually using them as a cache between the
HTML and manpage generation :)
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/rules 2017-12-26 08:41:29.306724894 +0000
--- b/debian/rules 2017-12-26 09:15:50.208246261 +0000
@@ -6,12 +6,15 @@
override_dh_auto_build:
dh_auto_build
- PYTHONPATH=. sphinx-build -N -bhtml docs/ docs/build/html # HTML
generator
- PYTHONPATH=. sphinx-build -N -bman docs/ docs/build/man # Manpage
generator
+ PYTHONPATH=. sphinx-build -N -bhtml docs/ -d debian/doctrees
docs/build/html # HTML generator
+ PYTHONPATH=. sphinx-build -N -bman docs/ -d debian/doctrees
docs/build/man # Manpage generator
override_dh_auto_test:
# The tarball doesn't contain runtest.py.
+override_dh_auto_clean:
+ rm -rf debian/doctrees
+
override_dh_auto_install:
dh_auto_install
# We don't install examples in dist-packages
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team