diff mercurial/cffi/bdiffbuild.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/bdiffbuild.py	Tue May 02 21:04:40 2017 +0900
+++ b/mercurial/cffi/bdiffbuild.py	Tue May 02 21:08:38 2017 +0900
@@ -4,7 +4,7 @@
 import os
 
 ffi = cffi.FFI()
-ffi.set_source("_bdiff_cffi",
+ffi.set_source("mercurial.cffi._bdiff",
     open(os.path.join(os.path.join(os.path.dirname(__file__), '..'),
         'bdiff.c')).read(), include_dirs=['mercurial'])
 ffi.cdef("""