From 905d3dd0b6a98ab313eed25d694f114d97f07ba3 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Thu, 1 Apr 2021 07:16:39 +0100 Subject: [PATCH] Make the build reproducible Whilst working on the Reproducible Builds effort [0] we noticed that libsass-python could not be built reproducibly. This is due to the manpage containing content that is generated by iterating over a Python frozenset type, which is non-deterministic. This was originally filed in Debian as #971527 [1]. [0] https://reproducible-builds.org/ [1] https://bugs.debian.org/971527 --- sassutils/builder.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sassutils/builder.py b/sassutils/builder.py index 3390f45e..b07dfad7 100644 --- a/sassutils/builder.py +++ b/sassutils/builder.py @@ -22,7 +22,9 @@ #: (:class:`re.RegexObject`) The regular expression pattern which matches to #: filenames of supported :const:`SUFFIXES`. -SUFFIX_PATTERN = re.compile('[.](' + '|'.join(map(re.escape, SUFFIXES)) + ')$') +SUFFIX_PATTERN = re.compile( + '[.](' + '|'.join(map(re.escape, sorted(SUFFIXES))) + ')$', +) def build_directory(