[Distutils] setuptools vs distribute on Debian
manlio.perillo at gmail.com
Thu Nov 18 17:23:56 CET 2010
-----BEGIN PGP SIGNED MESSAGE-----
Il 18/11/2010 17:08, Tres Seaver ha scritto:
> On 11/18/2010 10:51 AM, Manlio Perillo wrote:
>> No, this is not a flame.
>> I'm on Debian Squeeze and I noticed this strange thing:
> [setuptools is an alias for sitribute]
>> Now, I read that this is a Debian policy: for some reasons they force me
>> to use distribute instead setuptools.
>> However, I *do* want to use setuptools, and I'm unable to do what I want.
>> I checked the "fake" setuptools source code but I can't see what I need
>> to modify in order to get setuptools when I ask for setuptools.
> If you use the OS tools to install from the OS repositories, you are
> pretty much forced to live with any of their non-optional policy
> choices. Alternatives would be to go "outside the box" in one way or
> - Install setuptools into the system Python manually (probably a Really
> Bad Idea).
What I would like to do is to edit Python setuptools source files in
order to remove the setuptools -> distribute alias.
$easy_install -U setuptools
$aptitude purge python-setuptools
$python -c "from setuptools.command import easy_install;
The latter is required in order to reinstall scripts.
Note that this works on Debian Etch, but it does no more work on Debian
> - Install and use 'virtualenv' to get an environment insulated from
> the system Python. 'virtualenv' still uses the "real" setuptools by
> - Install Python and setuptools from source.
> I prefer the last option, myself, as I know better than the OS packagers
> do about how to configure and build Python and related stuff for my
> applications, just as they know better how to build it to support other
> system packages.
I would like to avoid this option!
I usually build Python packages by myself (and often I use virtualenv),
however I do find very useful precompiled packages for something like
pygtk and pyqt, that I really *don't* want to build by myself (and, as
far as I know, are not even easy installable).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
More information about the Distutils-SIG