Skip to content

Commit

Permalink
Make the build reproducible
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lamby committed Oct 1, 2020
1 parent 1106969 commit 522b8e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sassutils/builder.py
Expand Up @@ -22,7 +22,7 @@

#: (: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(
Expand Down

0 comments on commit 522b8e9

Please sign in to comment.