[Distutils] Unexpected error <python setup.py install_data --root /tmp>

Tres Seaver tseaver at palladion.com
Fri May 28 18:18:38 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Cournapeau wrote:
> On Fri, May 28, 2010 at 11:12 AM, Kent Tenney <ktenney at gmail.com> wrote:
>> In a docutils svn checkout.
>>
>> [docutils/trunk/docutils]$ python setup.py install --root /tmp
>> OK
>>
>> [docutils/trunk/docutils]$ python setup.py install_data --root /tmp
>>
>> distutils.errors.DistutilsFileError:
>> could not delete
>> '/usr/local/lib/python2.6/dist-packages/docutils/parsers/rst/include/README.txt':
>> Permission denied
> 
> Well, do you have writing permision in that directory ? Generally, you
> need admin priviledges to write anything in  /usr/local, and tmp is
> writable by anyone,

The issue is that distutils is ignoring the '--root' passed to
'install_data'.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEUEARECAAYFAkv/7NgACgkQ+gerLs4ltQ7MxACVEcSHRW5y5doD2765QSrGhnSK
ogCfU6Impyk5lGSGKamRTbY5Td7Tb3c=
=7YDb
-----END PGP SIGNATURE-----



More information about the Distutils-SIG mailing list