RFH: extend standard modulefinder.py to understand lazy_import

Alexander Belchenko bialix at ukr.net
Tue Jan 29 21:32:21 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

there is permanent problem with bzr.exe and dependencies for bzr plugins.
It was discussed recently in another thread about plugins on Windows.

In short: if we don't bundle plugins into py2exe'd distribution,
the library.zip with python libraries could lacks some standard python
modules/libraries required for such plugins. One of my recent patch
move builtin plugins launchpad and multiparent out of library.zip
so they affected by this problem as well. (Especially launchpad
plugin that require xmlrpclib module that not used by bzrlib itself).

I want to gather these dependencies automatically with standard python
modulefinder.py. But I can't because bzrlib and plugins heavily used
lazy_import and therefore modulefinder.py can't find lazy dependencies.

I need some help from Python gurus re extending modulefinder.py
functionality to support our lazy_import mechanics.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHn5tlzYr338mxwCURArhGAJ9d4qBfmQh3uhGled3AUE7wk1IT7ACfbQcm
Ix0p4idNGeTsBT1B70KQdL0=
=1Qxf
-----END PGP SIGNATURE-----



More information about the bazaar mailing list