[Distutils] easy_install -f confusion

Phillip J. Eby pje at telecommunity.com
Fri Jan 4 20:15:42 CET 2008

At 11:19 AM 1/4/2008 -0600, Ian Bicking wrote:
>The attached patch gives a helpful error message if you give 
>multiple -f options.  I used sys.argv; I imagine there might be a 
>more proper way to get the unparsed arguments, but I admit I didn't 
>look too closely.

Unfortunately, that's not an acceptable approach.  sys.argv may have 
zero to do with the arguments being parsed: consider zc.buildout, for 
example, let alone setuptools' internal uses of easy_install.  These 
are far from the only programs that internally invoke easy_install 
while running from a different command line.

It might be better to fix distutils parsing so it detects duplicated 
options in general.  If it can be done in a way that setuptools can 
monkeypatch the fix in, even better.

More information about the Distutils-SIG mailing list