[Distutils] sandbox violation
Tres Seaver
tseaver at palladion.com
Wed Apr 18 17:46:09 CEST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Flávio Codeço Coelho wrote:
> Em Ter, 2007-04-17 às 20:04 -0400, Phillip J. Eby escreveu:
>
>> At 04:16 PM 4/17/2007 -0300, Flávio Codeço Coelho wrote:
>>> Hi,
>>>
>>> I have a setup.py that has recently stopped working with a
>>> sandbox-violation error message. During installation I install files under
>>> /usr/share
>>>
>>> Is installation of file outside the python path forbidden now?
>> It is when an egg is being built, since anything not installed to the
>> temporary directory where the egg is being built will not get included in
>> the egg.
>>
>
> Is this a recent change to easy_install? cause my packages used to
> install nicely with easy_instal up to a few weeks ago...
>
>>> Is ther any workaraound?
>> Don't use easy_install or build an egg. Eggs must be self-contained, and
>> easy_install builds eggs before installing them. That's a feature of eggs
>> -- i.e., they don't put files all over your system.
>
>
> I agree with this philosophy. But does it mean that if want my packages
> to install files to other locations, I am forever banned from the
> setuptools world? ;-) Please say it is not true...;-)
I think I understood Phillip's response to say that you can *install*
files outside of the egg; you just can't put them there during the
*build* phase, which is when the sandboxing is enforced.
This is "best practice" for other systems as well: people would be
extremely upset if 'make' by itself deployed files outside the local
directory, rather than doing that effort during 'make install'. An
additional benefit is that users can *build* the egg without any special
privileges (as with RPMs, for instance).
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.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGJj1B+gerLs4ltQ4RAjgiAJ9AqtOx1paeSU/dNefRUpP/ky6UnACdEE0R
nUjsqu4s/DpZcdJ8vifULqs=
=sGK6
-----END PGP SIGNATURE-----
More information about the Distutils-SIG
mailing list