Comment 2 for bug 254379

Revision history for this message
Barry Warsaw (barry) wrote :

I don't think this patch is a good idea. First, doing this kind of re-situating of a package is generaly frowned upon in the Python world. See specifically the extensive discussion surrounding PEP 328's absolute and relative imports.

More importantly, wrapping these imports in try/excepts is really just a bandaid on the problem. If you try to do this with any other packages, you'll find just as many similar problems.

It's much better to just use wadllib and launchpadlib as they're intended, as setuptools-based Python eggs. There are many solutions out there that would allow you to use the package as it's intended without having to install it system-wide or hacking sys.path. E.g. 'setup.py develop' and virtualenv.