Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix build error when there's a dangling symlink in the directory containing
``ffi.h``.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ def is_macosx_sdk_path(path):

def grep_headers_for(function, headers):
for header in headers:
if not os.path.exists(header): continue
with open(header, 'r', errors='surrogateescape') as f:
if function in f.read():
return True
Expand Down