[rb-general] Sphinx output always reproducible?

Bernhard M. Wiedemann bernhardout at lsmod.de
Wed Apr 11 01:17:05 CEST 2018



On 2018-04-10 20:05, W. Martin Borgert wrote:
> Hi,
> 
> I wonder, whether sphinx output still might not be reproducible
> in the following case (Python 3):
> 
>     class A_Class(object):
>         #: A set
>         a_set = {'a', 'b', 'c'}
> 
> It looks like the order of the set is arbitrary in the resulting
> docs.
> 
> I came across the issue here:
> https://tests.reproducible-builds.org/debian/rb-pkg/stretch/amd64/diffoscope-results/slixmpp.html
> 
> Any idea, how to fix that? (I'm still a sphinx luddite!)

did you try if it helps to do
export PYTHONHASHSEED=0

otherwise explicit sorting would probably be needed.

apart from that I had issues with
http://rb.zq1.de/compare.factory-20180228/python-magnumclient-compare.out
that contained varying output from functions

It seems to be fine in Debian though
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/python-magnumclient.html


More information about the rb-general mailing list