Unexpected error <python setup.py install_data --root /tmp>
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 What am I missing here? Thanks, Kent
On Fri, May 28, 2010 at 11:12 AM, Kent Tenney
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, David
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David Cournapeau wrote:
On Fri, May 28, 2010 at 11:12 AM, Kent Tenney
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@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-----
On Fri, May 28, 2010 at 11:18 AM, Tres Seaver
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
David Cournapeau wrote:
On Fri, May 28, 2010 at 11:12 AM, Kent Tenney
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@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@python.org http://mail.python.org/mailman/listinfo/distutils-sig
participants (3)
-
David Cournapeau
-
Kent Tenney
-
Tres Seaver