Mercurial > hg
diff mercurial/cffi/mpatchbuild.py @ 32506:2dcb3d52ef41
cffi: put compiled modules into mercurial.cffi package
Don't pollute the top-level namespace.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 02 May 2017 21:08:38 +0900 |
parents | 05a16c19967e |
children | 0585337ea787 |
line wrap: on
line diff
--- a/mercurial/cffi/mpatchbuild.py Tue May 02 21:04:40 2017 +0900 +++ b/mercurial/cffi/mpatchbuild.py Tue May 02 21:08:38 2017 +0900 @@ -6,7 +6,7 @@ ffi = cffi.FFI() mpatch_c = os.path.join(os.path.join(os.path.dirname(__file__), '..', 'mpatch.c')) -ffi.set_source("_mpatch_cffi", open(mpatch_c).read(), +ffi.set_source("mercurial.cffi._mpatch", open(mpatch_c).read(), include_dirs=["mercurial"]) ffi.cdef("""