From 5900584ebcaa4ba73e1324e5b358f88c7f69afb6 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Fri, 1 Jun 2018 06:41:17 +0200 Subject: [PATCH] Sort input file list so that pocketsphinx-python's _pocketsphinx.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.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 466be08..0eef6e9 100644 --- a/setup.py +++ b/setup.py @@ -64,14 +64,14 @@ def _find_vcvarsall(version): extra_compile_args = [] extra_link_args = [] -libsphinxbase = ( +libsphinxbase = sorted( glob('deps/sphinxbase/src/libsphinxbase/lm/*.c') + glob('deps/sphinxbase/src/libsphinxbase/feat/*.c') + glob('deps/sphinxbase/src/libsphinxbase/util/*.c') + glob('deps/sphinxbase/src/libsphinxbase/fe/*.c') -) +)) -libpocketsphinx = glob('deps/pocketsphinx/src/libpocketsphinx/*.c') +libpocketsphinx = sorted(glob('deps/pocketsphinx/src/libpocketsphinx/*.c')) sb_sources = ( libsphinxbase +