Show More
@@ -170,6 +170,16 b' def fromlocalfunc(modulename, localmods)' | |||||
170 | return False |
|
170 | return False | |
171 | return fromlocal |
|
171 | return fromlocal | |
172 |
|
172 | |||
|
173 | def populateextmods(localmods): | |||
|
174 | """Populate C extension modules based on pure modules""" | |||
|
175 | newlocalmods = set(localmods) | |||
|
176 | for n in localmods: | |||
|
177 | if n.startswith('mercurial.pure.'): | |||
|
178 | m = n[len('mercurial.pure.'):] | |||
|
179 | newlocalmods.add('mercurial.cext.' + m) | |||
|
180 | newlocalmods.add('mercurial.cffi._' + m) | |||
|
181 | return newlocalmods | |||
|
182 | ||||
173 | def list_stdlib_modules(): |
|
183 | def list_stdlib_modules(): | |
174 | """List the modules present in the stdlib. |
|
184 | """List the modules present in the stdlib. | |
175 |
|
185 | |||
@@ -701,7 +711,7 b' def main(argv):' | |||||
701 | for source_path in argv[1:]: |
|
711 | for source_path in argv[1:]: | |
702 | modname = dotted_name_of_path(source_path) |
|
712 | modname = dotted_name_of_path(source_path) | |
703 | localmodpaths[modname] = source_path |
|
713 | localmodpaths[modname] = source_path | |
704 |
localmods = |
|
714 | localmods = populateextmods(localmodpaths) | |
705 | for localmodname, source_path in sorted(localmodpaths.items()): |
|
715 | for localmodname, source_path in sorted(localmodpaths.items()): | |
706 | for src, modname, name, line in sources(source_path, localmodname): |
|
716 | for src, modname, name, line in sources(source_path, localmodname): | |
707 | try: |
|
717 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now