[Bugs] #1002 UNSP: Upgrade version of pyBox2D used in Physics to 2.0.2b1

SugarLabs Bugs bugtracker-noreply at sugarlabs.org
Mon Jun 29 04:12:10 EDT 2009


#1002: Upgrade version of pyBox2D used in Physics to 2.0.2b1
------------------------------------------+---------------------------------
    Reporter:  brian                      |          Owner:  brian                      
        Type:  task                       |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  Physics                    |        Version:  Unspecified                
    Severity:  Minor                      |     Resolution:                             
    Keywords:                             |   Distribution:  Unspecified                
Status_field:  Assigned                   |  
------------------------------------------+---------------------------------

Comment(by brian):

 Ended up doing:

 {{{
 sudo yum install python-devel svn
 svn co http://svn2.assembla.com/svn/elements elements-svn
 cd elements-svn
 sudo python ez_setup.py
 sudo python setup.py
 }}}

 The last command created /usr/lib/python2.5/site-
 packages/Elements-0.11-py2.5.egg and /usr/lib/python2.5/site-
 packages/Box2D-2.0.2b1-py2.5-linux-i686.egg

 I'm having trouble figuring out how to get these .eggs importing with a
 relative location when stored within Physics.activity/

 Leaving them in /usr/lib, physics works well!  The only things I have
 found that will need fixing are the Pin and Joint tools.

 The
 [http://trac2.assembla.com/elements/browser/elements/add_objects.py#L441
 joint() tool code] in Elements-0.11 seems to only Pin objects to the
 background at it the object's center.

 So, the next steps:

 (a) figure out how to properly include the .egg(s?) within the activity

 (b) either (1) modify the Joint tool at the Elements level or (2) figure
 out how to get at box2d.b2RevoluteJointDef() from within tools.py

 Any tips?

-- 
Ticket URL: <http://dev.sugarlabs.org/ticket/1002#comment:2>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list