Skip to content

Commit 1f264dc

Browse files
lambywjakob
authored andcommitted
Suggest sorting of extension sources to ensure a reproducible build regardless of filesystem ordering.
re. pikepdf/pikepdf#76
1 parent f351330 commit 1f264dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ def __str__(self):
2121
ext_modules = [
2222
Extension(
2323
'python_example',
24-
['src/main.cpp'],
24+
# Sort input source files to ensure bit-for-bit reproducible builds
25+
# (https://github.com/pybind/python_example/pull/53)
26+
sorted(['src/main.cpp']),
2527
include_dirs=[
2628
# Path to pybind11 headers
2729
get_pybind_include(),

0 commit comments

Comments
 (0)