From c6e0fbbbcb8ab3ef9bf0492612a4ab94e5d458ea Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Mon, 1 Oct 2018 16:52:15 +0200 Subject: [PATCH] Sort input file list so that the .so file 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.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index bc450f3f3..4b8f5deee 100644 --- a/setup.py +++ b/setup.py @@ -56,7 +56,7 @@ if os.path.isfile(datadirfile_save): shutil.move(datadirfile_save, datadirfile) - deps = glob.glob('src/*.c') + deps = sorted(glob.glob('src/*.c')) macros = [] # these flags are set by configure when proj.4 lib is built. # enable pthreads support