On Sat, Feb 7, 2009 at 8:02 AM, Piotr Ozarowski <[email protected]> wrote: > [Joshua D. Drake] >> sudo easy_install pylons > > Please add "Please note that after this command, you cannot report bugs > against Python related Debian/Ubuntu packages and if you will want to > uninstall Pylons or some of your other applications will stop working, > reinstall your system (which normally, you should never do on Debian)" > > NEVER INSTALL EGGS INTO GLOBAL SITE-PACKAGES!!!
Both Debian and Ubuntu have /usr/local/lib/python2.X/site-packages, which is expressly intended for locally-installed libraries like this. Their Python interpreter has been modified to look both places. If easy_install tries to put something into /usr/lib, a small change in /usr/lib/python2.X/distutils/distutils.cfg or ~/.pydistutils.cfg will correct it.) > hint: python-virtualenv Yes, this is a better way. Eventually you will have multiple applications, and at some point you'll want to upgrade one while another is still using older APIs. Even Setuptools has this problem periodically, in that newer versions of Pylons or its dependencies depend on a newer version of Setuptools than Debian provides. A virtualenv will automatically install a private copy of Setuptools, which can then be upgraded without affecting other production applications. I normally install Ubuntu packages only for things that have C extensions that can be hard to compile. So python-mysqldb, python-ldap, python-imaging, etc. These are pretty mature so the default version is probably all you'll ever need. The same cannot be said for Pylons, SQLAlchemy, Setuptools, etc. -- Mike Orr <[email protected]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
