easy_install and packages with both egg and non-egg distributions
Hello, From the documentation, unless the --upgrade option is used (or, I suppose, a version specifier given), easy_install is supposed to be content with distributions already installed on sys.path or site-packages. But is it true also when an egg distribution is available for this same package? My problem: I have a dependency on a package xxx which is already installed (as a subdirectory of site-packages). If I put "install_requires = ['xxx']" in some setup.py, the egg will be downloaded. If I try "easy_install xxx" directly, this will force the egg distribution, too. I don't want the egg version because it does not work, import fails on "zipimport.ZipImportError: can't find module 'xxx'" (yet unzipping the egg the xxx packages is there, if anyone has an idea of what may be missing...). Also, if I remove the installed egg to used the existing distribution of xxx, my installed package now works well, except the script installed via entry_points, which seem to expect an egg in any case. So I cannot just "correct" the distribution by removing the wrong egg. The current solution I have found is not formally declare the dependency and advise to install xxx before... Is this the expected behaviour? I'm using python 2.5.1, windows xp, setuptools 0.6c7. Thanks for any help.
At 12:27 AM 12/21/2007 +0100, Papa Eric wrote:
I don't want the egg version because it does not work, import fails on "zipimport.ZipImportError: can't find module 'xxx'" (yet unzipping the egg the xxx packages is there, if anyone has an idea of what may be missing...).
It appears you have a corrupted egg file; could you perhaps say what 'xxx' stands for here?
On Thu, 2007-12-20 at 19:18 -0500, Phillip J. Eby wrote:
At 12:27 AM 12/21/2007 +0100, Papa Eric wrote:
I don't want the egg version because it does not work, import fails on "zipimport.ZipImportError: can't find module 'xxx'" (yet unzipping the egg the xxx packages is there, if anyone has an idea of what may be missing...).
It appears you have a corrupted egg file; could you perhaps say what 'xxx' stands for here?
Using Linux, I had trouble with zipped eggs when run from the web server. I no longer have copies of the the error messages, but they related to permission problems with unzipping the egg. I realize that this error message does not seem to fit my scenario, but thought it could be worth mentioning. I set my distutils.cfg file to contain:: [easy_install] zip_ok = False
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
-- Lloyd Kvam Venix Corp DLSLUG/GNHLUG library http://www.librarything.com/catalog/dlslug http://www.librarything.com/profile/dlslug http://www.librarything.com/rsshtml/recent/dlslug
It appears you have a corrupted egg file; could you perhaps say what 'xxx' stands for here?
It's pyglet (www.pyglet.org). I'd be glad if I could suggest a patch. Anyway, more generally, is there a known problem of coexistence of egg and subdirectory distributions? (as far as version specifiers are not used)
participants (3)
-
Lloyd Kvam
-
Papa Eric
-
Phillip J. Eby