[Distutils] Keep downloaded files in case of an error

Dmitry Vasiliev lists at hlabs.spb.ru
Mon Jul 17 14:52:18 CEST 2006

Robin Bryce wrote:
> python setup.py develop --build-directory=build worked for me::

I know about "--build-directory" option but it doesn't work in case of "unknown 
archive type" error for example:

$ python setup.py develop -b build
Reading http://www.python.org/pypi/Twisted/
Reading http://twistedmatrix.com/
Best match: Twisted 2.4.0
Downloading http://tmrc.mit.edu/mirror/twisted/Twisted/2.4/Twisted-2.4.0.tar.bz2
Processing Twisted-2.4.0.tar.bz2
error: Not a recognized archive type: 

$ ls -l build
ls: build: No such file or directory

I guess downloaded file is created as temporary file so in case of a such error 
it's just discarded.

Dmitry Vasiliev (dima at hlabs.spb.ru)

More information about the Distutils-SIG mailing list