[sugar] Running pygame activity with sugar-jhbuild

Marco Pesenti Gritti mpg
Wed Jul 11 14:55:30 EDT 2007


Julius B. Lucks wrote:
>
>>> I am trying to run an activity which requires pygame with  
>>> sugar-jhbuild.  Since pygame is not included in sugar-jhbuild, I  
>>> installed it in /usr/lib/python2.5/site-packages, and added this 
>>> path  to my PYTHONPATH variable once I was in my sugar developer 
>>> console.  I  can now import pygame, but I seem to be getting some 
>>> sort of conflict  between my distro's python packages and 
>>> sugar-jhbuid's.
>>>
>> I can think of two good approaches to this:
>>
>> * Build pygame inside sugar-jhbuild.
>> * Make sugar-jhbuild not build his own python if the distro already 
>> have 2.5.
>
> How do I do the latter?

You need to create ~/.olpc.jhbuildrc and add skip = [ 'python' ]. You 
need to do a full build though , so you probably want to do a separate 
sugar-jhbuild checkout to try this out.

Do a "sugar-jhbuild list" to make sure python is actually no more in the 
module list.

Marco



More information about the Sugar-devel mailing list