On 2010-03-24 18:30 PM, Tarek Ziadé wrote:
On Thu, Mar 25, 2010 at 12:20 AM, Robert Kern<robert.k...@gmail.com>  wrote:
[??]
The problem with doing that currently is that distutils complains when it
receives an option that it doesn't recognize.

No because these are options you pass to easy_install only in your
distutils.cfg file:

   [easy_install]
   foo=bar

   [bdist_rpm]
   baz=1
   ...

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'

You need to use [easy_install] in your  .pydistutils.cfg, not [install].

The easy_install command is called internally by the install command
in distribute/setuptools.

The --single-version-externally-managed and --record options are only on the install command, not the easy_install command.

$ cat ~/.pydistutils.cfg
[easy_install]
single-version-externally-managed=True
record=/dev/null

$ python setup.py install
running install
error: error in /Users/rkern/.pydistutils.cfg: command 'easy_install' has no such option 'single_version_externally_managed'

Please show me a configuration that you have tested.

--
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

Reply via email to