On 2010-03-24 17:53 PM, Tarek Ziadé wrote:
On Wed, Mar 24, 2010 at 11:27 PM, Robert Kern<robert.k...@gmail.com> wrote:
On 2010-03-24 17:19 PM, Tarek Ziadé wrote:
BTW, That makes me wonder how hard it would be to make it use a plain
"python setup.py install" call
instead, to remove the easy_install dependency ? Since it could
simply loop into each dependency
Some packages use setuptools and some don't. Since setuptools changes the
behavior of the install command to install .eggs, those packages need extra
flags to use pip's preferred flat installs. Using easy_install (with the
right flags) yields consistent behavior for all packages.
That's just an environment problem.
Notice that I've never tried it, but this could be done by properly
configuring the default behavior of easy_install globally (with the
distutils.cfg file for instance since its a distutils command) so it
behaves like pip wants when "python setup.py install" is called.
The problem with doing that currently is that distutils complains when it
receives an option that it doesn't recognize. Packages that do not use
setuptools will fail if you try to provide setuptools-specific configuration:
$ python setup.py install
running install
error: error in /Users/rkern/.pydistutils.cfg: command 'install' has no such
option 'single_version_externally_managed'
Making those warnings instead of errors would probably work.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
_______________________________________________
Distutils-SIG maillist - Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig