[Distutils] install --dry-run broken?

Jim Fulton jim at zope.com
Thu Apr 22 23:40:45 CEST 2010


On Thu, Apr 22, 2010 at 5:19 PM, Tarek Ziadé <ziade.tarek at gmail.com> wrote:
> On Thu, Apr 22, 2010 at 11:11 PM, Jim Fulton <jim at zope.com> wrote:
> [..]
>> That sounds good, although
>>
>>    python2.6 setup.py --dry-run install
>>
>> doesn't work either. With the "simple example":
>>
>>  python2.6 setup.py --dry-run install
>>  running install
>>  running build
>>  running build_py
>>  running install_lib
>>  copying build/lib/foo.py -> /usr/local/python/2.6/lib/python2.6/site-packages
>>  error: file '/usr/local/python/2.6/lib/python2.6/site-packages/foo.py'
>> does not exist
>
> I confirm this is not working (even under 2.5) -- please fill a bug in
> bugs.python.org, I'll fix it.

http://bugs.python.org/issue8501

>
>> Or maybe this constitutes "working" for distutils. ;)
>
> well, why do you want to do a dry run anyways ?

I don't. I was researching an old ZODB issue in which someone
complained that ZODB's setup.py broke --dry-run. :)

> make up your mind: do
> you want it installed or not ? ;)

The documentation says that when --dry-run is used: "don't actually do
anything".  This is not the actual behavior.  I'd be happy to see the
option go away. I don't think anyone us depending on it and you have
better things to do.

Jim

--
Jim Fulton


More information about the Distutils-SIG mailing list