Skip to content

Commit

Permalink
Build bindings reproducibly
Browse files Browse the repository at this point in the history
`glob` output isn't guaranteed to be in any particular order, so
`_sodium.*.so` wasn't always reproducible.
  • Loading branch information
cjwatson committed Aug 26, 2024
1 parent 56523d2 commit 4427470
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/bindings/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,16 @@
__all__ = ["ffi"]


HEADERS = glob.glob(
os.path.join(os.path.abspath(os.path.dirname(__file__)), "*.h")
HEADERS = sorted(
glob.glob(os.path.join(os.path.abspath(os.path.dirname(__file__)), "*.h"))
)

MINIMAL_HEADERS = glob.glob(
os.path.join(os.path.abspath(os.path.dirname(__file__)), "minimal", "*.h")
MINIMAL_HEADERS = sorted(
glob.glob(
os.path.join(
os.path.abspath(os.path.dirname(__file__)), "minimal", "*.h"
)
)
)


Expand Down

0 comments on commit 4427470

Please sign in to comment.