Re: [Mesa-dev] [PATCH 1/2] build: Stabilize some script outputs

2018-07-05 Thread Dylan Baker
Quoting Mathieu Bridon (2018-06-27 03:37:38) > In Python, dictionaries and sets are unordered, and as a result their > is no guarantee that running this script twice will produce the same > output. Small nit: in python < 3.7 dicts are unordered. In cpython 3.6 (and pypy since forever?) they are, i

[Mesa-dev] [PATCH 1/2] build: Stabilize some script outputs

2018-06-27 Thread Mathieu Bridon
In Python, dictionaries and sets are unordered, and as a result their is no guarantee that running this script twice will produce the same output. Using ordered dicts and explicitly sorting items makes the build more reproducible, and will make it possible to verify that we're not breaking anythin