diff --git a/pygit2/libgit2_build.py b/pygit2/libgit2_build.py index 30cd63b..9e6112f 100644 --- a/pygit2/libgit2_build.py +++ b/pygit2/libgit2_build.py @@ -92,9 +92,10 @@ C_KEYWORDS = dict(libraries=['git2'], # The modulename # Simplified version of what cffi does: remove kwargs and vengine +preamble = "#include " + set_source = getattr(ffi, 'set_source', None) if set_source is not None: - preamble = "#include " set_source("pygit2._libgit2", preamble, **C_KEYWORDS) ffi.cdef(C_HEADER_SRC)