Skip to content
Snippets Groups Projects
Commit 1520b5d9 authored by Laurens Van Houtven's avatar Laurens Van Houtven
Browse files

Merge pull request #54 from wbolster/issue-53

Call ffi.cdef() for header files in predictable order

Closes #53.
parents 0f3483ee 2a43b8cc
No related branches found
No related tags found
No related merge requests found
...@@ -36,8 +36,10 @@ HEADERS = glob.glob( ...@@ -36,8 +36,10 @@ HEADERS = glob.glob(
ffi = FFI() ffi = FFI()
# Add all of our header files # Add all of our header files, but sort first for consistency of the
for header in HEADERS: # hash that CFFI generates and uses in the .so filename (the order of
# glob() results cannot be relied on)
for header in sorted(HEADERS):
with open(header, "r") as hfile: with open(header, "r") as hfile:
ffi.cdef(hfile.read()) ffi.cdef(hfile.read())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment