On Wed, Jan 28, 2009 at 3:37 PM, Akira Kitada <[email protected]> wrote:
>
>> That's what Guido says, and it's why we're at an impasse. Distutils
>> is fine if you just need to download one or two packages and "python
>> setup.py install" them. But that doesn't scale when a package has a
>> dozen dependencies that recursively have dependencies. Without
>> Setuptools, Python and TurboGears couldn't exist, and Zope and Twisted
>> would not have been able to split themselves into several packages.
>
> Why not package management system on the system like apt/yum/MacPorts?
> For Pylons/TurboGears users, their system's package system would be
> preferable to setuptools', because it's robost and easier to manage
> their packages easily.
Because distro release cycles can't keep up with the rate of change in
Python packages. You may need a version that the distro doesn't
provide. Even if it's just one package, you're into local-install
land.
Also, distro packages can only be one version at a time, whereas you
may have one application that needs one version and another
application that needs another. Virtualenv handles this but OS
packages don't.
OS packages could be made to allow multiple versions side by side
("easy_install -m"), and each app could use pkg_resources.require() to
put the version it needs onto sys.path. But Setuptools is particularly
fragile in this area so few applications have gone this route, plus
users do not expect to have to "require" packages by default. And pip
shows an installation structure that's arguably better but is
incompatible with multi-versioning.
In production, I've gone to always using virtualenvs. That way if I
install a new website with different library versions, I don't have to
worry about potentially breaking existing sites. I use OS packages
only for things that are particularly difficult to install (MySQLdb,
LDAP, PIL). Fortunately these are pretty version-independent, so all
applications can use them.
--
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
-~----------~----~----~----~------~----~------~--~---