From 1f264dc12ceedb874ee691d9143b254adde29e6d Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Sat, 8 Feb 2020 16:32:14 +0000 Subject: [PATCH] Suggest sorting of extension sources to ensure a reproducible build regardless of filesystem ordering. re. https://github.com/pikepdf/pikepdf/pull/76 --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 2721b96..72278d0 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,9 @@ class get_pybind_include(object): ext_modules = [ Extension( 'python_example', - ['src/main.cpp'], + # Sort input source files to ensure bit-for-bit reproducible builds + # (https://github.com/pybind/python_example/pull/53) + sorted(['src/main.cpp']), include_dirs=[ # Path to pybind11 headers get_pybind_include(),