﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	launchpad_bug
803	python ./setup.py install -- can't create or remove files in install directory	zooko	zooko	"bewst reported:

{{{
$ python setup.py build
running darcsver
setup.py darcsver: Failure from attempt to find version tags with 'darcs changes', and src/allmydata/_version.py already exists, so leaving it alone.
running develop
Checking .pth file support in support/lib/python2.5/site-packages
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 2] No such file or directory: 'support/lib/python2.5/site-packages/test-easy-install-8824.pth'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    support/lib/python2.5/site-packages

This directory does not currently exist.  Please create it and try again, or
choose a different installation directory (using the -d or --install-dir
option).
}}}

This is part of http://bugs.python.org/setuptools/issue54 (be more like distutils with regard to --prefix=).  There are some patches to fix this particular detail in zetuptoolz, the fork of setuptools which comes bundled in Tahoe-LAFS under the unfortunate name of [src:misc/dependencies/setuptools-0.6c12dev.egg?rev=20090205152818-92b7f-68bbee545bd9198bb3c4eb7cf9b84bf7d93e09d6 setuptools-0.6c12dev].  (I've also submitted the patches to the new Python Distribute Project, which will hopefully be the successor to setuptools: http://bitbucket.org/tarek/distribute/issue/46/be-more-like-distutils-with-regard-to .)

Anyway, the fact that bewst is getting this error message suggests that somehow real setuptools instead of zetuptoolz is being used to try to build Tahoe-LAFS.  It's curious to wonder how this could happen.  bewst: could you tell me what happens when you run {{{python -c 'import pkg_resources;print pkg_resources.require(""setuptools"")'}}}?

(bewst initially reported this on ticket #668, but that ticket is about running {{{easy_install allmydata-tahoe}}} and this ticket is about downloading the source, unpacking it, and running {{{python ./setup.py install}}}.  This are intimately related, but the latter works for everyone else except bewst and the former doesn't work for anyone yet.)"	defect	closed	major	1.7.0	packaging	1.5.0	fixed	setuptools	francois@…	
