Message146979
fix_imports rewrites the import statements to local or global. When a python module loads a local extension module, this import statement should be converted to a local import (from . import extensionmodule). But when the extension module is not built yet, fix_imports does not find them (no file named extenstionmodule.[so|sl]). So it suggests a global import (import extensionmodule).
The original comment is a slightly modified version of this here:
http://selenic.com/hg/file/afc02adf4ded/contrib/setup3k.py#l223
short summary:
build.sub_commands in distutils.command.build should list "build_ext" before "build_py".
lib2to3.fixes.fix_import will write global instead of local import statements else. |
|
Date |
User |
Action |
Args |
2011-11-03 20:51:35 | simohe | set | recipients:
+ simohe, tarek, eric.araujo |
2011-11-03 20:51:35 | simohe | set | messageid: <1320353495.15.0.419965770813.issue13317@psf.upfronthosting.co.za> |
2011-11-03 20:51:34 | simohe | link | issue13317 messages |
2011-11-03 20:51:34 | simohe | create | |
|