Skip to content

Commit 88f037b

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 aec1e5b commit 88f037b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setupext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,7 @@ def add_flags(self, ext):
13411341
default_libraries=['qhull'])
13421342
else:
13431343
ext.include_dirs.append('extern')
1344-
ext.sources.extend(glob.glob('extern/libqhull/*.c'))
1344+
ext.sources.extend(sorted(glob.glob('extern/libqhull/*.c')))
13451345

13461346

13471347
class TTConv(SetupPackage):

0 commit comments

Comments
 (0)