[Distutils] Unexpected error <python setup.py install_data --root /tmp>
Kent Tenney
ktenney at gmail.com
Fri May 28 19:07:55 CEST 2010
On Fri, May 28, 2010 at 11:18 AM, Tres Seaver <tseaver at palladion.com> wrote:
> -----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'.
Right, I should have mentioned that explicitly.
[docutils/trunk/docutils]$ python setup.py install_data --help
...
Options for 'smart_install_data' command:
--install-dir (-d) base directory for installing data files (default:
installation base dir)
--root install everything relative to this alternate root
directory
--force (-f) force installation (overwrite existing files)
...
>
>
> 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-----
>
> _______________________________________________
> Distutils-SIG maillist - Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
>
More information about the Distutils-SIG
mailing list