From fe66e0b4326579bbdd26da29f65acd29655d7dc5 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Fri, 21 Jul 2017 05:14:46 +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. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3d7543ab..f27f9c52 100644 --- a/setup.py +++ b/setup.py @@ -57,7 +57,7 @@ os.path.join('libsass', 'include') ): for pth, _, filenames in os.walk(directory): - for filename in filenames: + for filename in sorted(filenames): filename = os.path.join(pth, filename) if filename.endswith(('.c', '.cpp')): sources.append(filename)