From 53298f87ff8079ca146ed4e4b318a61af4b89881 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Mon, 1 Jul 2019 14:36:14 +0200 Subject: [PATCH] Sort input file list so that calibre/plugins/lzma_binding.so builds in a reproducible way in spite of indeterministic filesystem readdir order and http://bugs.python.org/issue30461 See https://reproducible-builds.org/ for why this is good. --- setup/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/build.py b/setup/build.py index 9c50975b3a..f5a521192c 100644 --- a/setup/build.py +++ b/setup/build.py @@ -88,7 +88,7 @@ def expand_file_list(items, is_paths=True): ans.extend(expand_file_list(item, is_paths=is_paths)) else: if '*' in item: - ans.extend(expand_file_list(glob.glob(os.path.join(SRC, item)), is_paths=is_paths)) + ans.extend(expand_file_list(sorted(glob.glob(os.path.join(SRC, item))), is_paths=is_paths)) else: item = [item] if is_paths: