Skip to content

Commit 054e4e0

Browse files
committed
Sort input files
when building packages (e.g. for openSUSE Linux) (random) filesystem order of input files influences ordering of functions in the output, thus without the patch, builds (in disposable VMs) would usually differ. See https://reproducible-builds.org/ for why this matters.
1 parent 3efcb1c commit 054e4e0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ def restore_cencode():
141141
else:
142142
link_flags = ['-fPIC', '-lstdc++']
143143

144+
sources.sort()
144145
sass_extension = Extension(
145146
'_sass',
146147
sources,

0 commit comments

Comments
 (0)