Author simohe
Recipients eric.araujo, simohe, tarek
Date 2011-11-03.20:51:34
SpamBayes Score 5.86317e-06
Marked as misclassified No
Message-id <>
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:

short summary:

build.sub_commands in 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:35simohesetrecipients: + simohe, tarek, eric.araujo
2011-11-03 20:51:35simohesetmessageid: <>
2011-11-03 20:51:34simohelinkissue13317 messages
2011-11-03 20:51:34simohecreate