Skip to content

Commit 522b8e9

Browse files
committed
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
1 parent 1106969 commit 522b8e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sassutils/builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#: (:class:`re.RegexObject`) The regular expression pattern which matches to
2424
#: filenames of supported :const:`SUFFIXES`.
25-
SUFFIX_PATTERN = re.compile('[.](' + '|'.join(map(re.escape, SUFFIXES)) + ')$')
25+
SUFFIX_PATTERN = re.compile('[.](' + '|'.join(map(re.escape, sorted(SUFFIXES))) + ')$')
2626

2727

2828
def build_directory(

0 commit comments

Comments
 (0)