2008/9/22 Jussi Hakala <[EMAIL PROTECTED]>:
> Mateusz Jan Dominikowski wrote:
>>
>> SB comes with Python version 2.3.4 so I compiled 2.5.2 from sources and
>> installed it with standard prefix (/usr/local).
>> As /usr/local/bin is redirected in SB I tried to export
>> SBOX_REDIRECT_IGNORE=/usr/local/bin/python.
>> However when I type 'python' I still get  version  2.3.4  although
>>  /usr/local/bin/python is  2.5.2. <http://2.5.2.>
>> Am I doing something wrong?
>> The solution I found on this newsgroup is to use apt-get install
>> python2.5-dev however I would like to have in my sandbox only packages
>> compiled from scratch.
>
> The ignore thing you tried is the correct approach. However, you have to
> call python with explicit path.
>
> So, running
>
> $ python
> $ SBOX_REDIRECT_IGNORE=/usr/local/bin/python python
>
> will give you host's python, but running
>
> $ SBOX_REDIRECT_IGNORE=/usr/local/bin/python /usr/local/bin/python
>
> will give you the target's python.
>
> That, or you can do as Kalle suggested and compile a newer version of python
> for the host architecture and put it inside /host_usr/. After that you won't
> need any environment variables since stuff in /host_usr/ always override the
> stuff in devkits and the core.

That is, it SHOULD override the stuff in devkits and the core, but as
Scratchbox is buggy, it actually doesn't do this.

--
Daniel
_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to