From 88f037b6a0a07ad15864bdf37b62716f5bb789e7 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Mon, 12 Jun 2017 05:27:37 +0200 Subject: [PATCH] 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. --- setupext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setupext.py b/setupext.py index 1b2506da2c6b..15c59053c2b9 100644 --- a/setupext.py +++ b/setupext.py @@ -1341,7 +1341,7 @@ def add_flags(self, ext): default_libraries=['qhull']) else: ext.include_dirs.append('extern') - ext.sources.extend(glob.glob('extern/libqhull/*.c')) + ext.sources.extend(sorted(glob.glob('extern/libqhull/*.c'))) class TTConv(SetupPackage):