From e2b974beb0f6ca0b15001290330b0dc241fd337b Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Mon, 29 Jul 2019 12:51:53 +0200 Subject: [PATCH] Sort input file list so that _readstat_parser.so builds in a reproducible way in spite of indeterministic filesystem readdir order and missing https://github.com/python/cpython/pull/12341 See https://reproducible-builds.org/ for why this is good. --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 07e016e..9ed398b 100644 --- a/setup.py +++ b/setup.py @@ -96,6 +96,7 @@ libraries.append("iconv") # Extensions +sources.sort() extensions = [Extension("pyreadstat.pyreadstat", sources=["pyreadstat/pyreadstat" + ext] + sources, # this dot here is important for cython to find the pxd files