##// END OF EJS Templates
base85: switch to policy importer
Yuya Nishihara -
r32368:008d37c4 default
parent child Browse files
Show More
@@ -17,7 +17,6 b' import traceback'
17
17
18 # Modules that have both Python and C implementations.
18 # Modules that have both Python and C implementations.
19 _dualmodules = (
19 _dualmodules = (
20 'base85.py',
21 'bdiff.py',
20 'bdiff.py',
22 'diffhelpers.py',
21 'diffhelpers.py',
23 'mpatch.py',
22 'mpatch.py',
@@ -26,7 +26,6 b' allowsymbolimports = ('
26
26
27 # Modules that have both Python and C implementations.
27 # Modules that have both Python and C implementations.
28 _dualmodules = (
28 _dualmodules = (
29 'base85.py',
30 'bdiff.py',
29 'bdiff.py',
31 'diffhelpers.py',
30 'diffhelpers.py',
32 'mpatch.py',
31 'mpatch.py',
@@ -12,7 +12,7 b''
12 <Directory Id="libdir" Name="lib" FileSource="$(var.SourceDir)/lib">
12 <Directory Id="libdir" Name="lib" FileSource="$(var.SourceDir)/lib">
13 <Component Id="libOutput" Guid="$(var.lib.guid)" Win64='$(var.IsX64)'>
13 <Component Id="libOutput" Guid="$(var.lib.guid)" Win64='$(var.IsX64)'>
14 <File Name="library.zip" KeyPath="yes" />
14 <File Name="library.zip" KeyPath="yes" />
15 <File Name="mercurial.base85.pyd" />
15 <File Name="mercurial.cext.base85.pyd" />
16 <File Name="mercurial.bdiff.pyd" />
16 <File Name="mercurial.bdiff.pyd" />
17 <File Name="mercurial.diffhelpers.pyd" />
17 <File Name="mercurial.diffhelpers.pyd" />
18 <File Name="mercurial.mpatch.pyd" />
18 <File Name="mercurial.mpatch.pyd" />
@@ -23,7 +23,6 b' modulepolicy = policy.policy'
23 # Modules that have both Python and C implementations. See also the
23 # Modules that have both Python and C implementations. See also the
24 # set of .py files under mercurial/pure/.
24 # set of .py files under mercurial/pure/.
25 _dualmodules = {
25 _dualmodules = {
26 'mercurial.base85',
27 'mercurial.bdiff',
26 'mercurial.bdiff',
28 'mercurial.diffhelpers',
27 'mercurial.diffhelpers',
29 'mercurial.mpatch',
28 'mercurial.mpatch',
1 NO CONTENT: file renamed from mercurial/base85.c to mercurial/cext/base85.c
NO CONTENT: file renamed from mercurial/base85.c to mercurial/cext/base85.c
@@ -1026,11 +1026,11 b' def debuginstall(ui, **opts):'
1026 err = None
1026 err = None
1027 try:
1027 try:
1028 from . import (
1028 from . import (
1029 base85,
1030 bdiff,
1029 bdiff,
1031 mpatch,
1030 mpatch,
1032 )
1031 )
1033 from .cext import (
1032 from .cext import (
1033 base85,
1034 osutil,
1034 osutil,
1035 )
1035 )
1036 dir(bdiff), dir(mpatch), dir(base85), dir(osutil) # quiet pyflakes
1036 dir(bdiff), dir(mpatch), dir(base85), dir(osutil) # quiet pyflakes
@@ -42,7 +42,6 b' import warnings'
42 import zlib
42 import zlib
43
43
44 from . import (
44 from . import (
45 base85,
46 encoding,
45 encoding,
47 error,
46 error,
48 i18n,
47 i18n,
@@ -51,6 +50,7 b' from . import ('
51 pycompat,
50 pycompat,
52 )
51 )
53
52
53 base85 = policy.importmod(r'base85')
54 osutil = policy.importmod(r'osutil')
54 osutil = policy.importmod(r'osutil')
55
55
56 b85decode = base85.b85decode
56 b85decode = base85.b85decode
@@ -621,7 +621,7 b" if sys.platform == 'darwin':"
621 osutil_ldflags += ['-framework', 'ApplicationServices']
621 osutil_ldflags += ['-framework', 'ApplicationServices']
622
622
623 extmodules = [
623 extmodules = [
624 Extension('mercurial.base85', ['mercurial/base85.c'],
624 Extension('mercurial.cext.base85', ['mercurial/cext/base85.c'],
625 include_dirs=common_include_dirs,
625 include_dirs=common_include_dirs,
626 depends=common_depends),
626 depends=common_depends),
627 Extension('mercurial.bdiff', ['mercurial/bdiff.c',
627 Extension('mercurial.bdiff', ['mercurial/bdiff.c',
General Comments 0
You need to be logged in to leave comments. Login now