User:Gcerchio.diary: Difference between revisions

From OLPC
Jump to navigation Jump to search
(New page: == GIT == When you mess up a file and want it back to what it was cd into the directory and: '''git checkout HEAD -- gridwidget.py''' When you want an activity that sugar-jhbuild doe...)
 
mNo edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Python ==

When you need to learn something about Python and you never wrote a line:

Dive into Python:[http://www.diveintopython.org/]

== GIT ==
== GIT ==


When you mess up a file and want it back to what it was cd into the directory and:
When you mess up a file and want it back to what it was, cd into the directory and:


'''git checkout HEAD -- gridwidget.py'''
'''git checkout HEAD -- gridwidget.py'''
Line 8: Line 14:


'''git-clone git://dev.laptop.org/projects/tamtam'''
'''git-clone git://dev.laptop.org/projects/tamtam'''

== Using Eclipse with OLPC ==

When you want to start a new activity project using another activity as the base:

Create a new pydev project
''File->import''
''General->File System''
''Find your baseline activity's folder

When you want Eclipse to see all the OLPC imports:

''Project->Properties''
select PyDev - PYTHONPATH
in the External Source Folders Pane button '''Add source folder'''
find the sugar-jhbuild/build/lib/python2.5/site-packages folder
select button '''Apply'''
select button '''OK'''
''Project->Clean..''

When the Pydev IDE does not recognize parts of your objects:

''Window->Preferences''
select ''Pydev->Interperter - Python''
in the Forced builtin libs panel button '''New'''
Enter the name of the object missing the pieces
select button button '''OK'''
select button '''Apply'''
select button '''OK'''
''Project->Clean..''

When you want to build your project's xo file for distribution

# assumes you already setup this symbolic link with ./setup.py dev
pushd ~/Activities/project-activity
.setup.py dist
popd


[[Category:Git]]
[[Category:Developers]]
[[Category:Software development]]
[[Category:Eclipse]]

Latest revision as of 15:58, 10 December 2007

Python

When you need to learn something about Python and you never wrote a line:

 Dive into Python:[1]

GIT

When you mess up a file and want it back to what it was, cd into the directory and:

  git checkout HEAD -- gridwidget.py

When you want an activity that sugar-jhbuild does not bring down:

   git-clone git://dev.laptop.org/projects/tamtam

Using Eclipse with OLPC

When you want to start a new activity project using another activity as the base:

   Create a new pydev project
   File->import
   General->File System
   Find your baseline activity's folder

When you want Eclipse to see all the OLPC imports:

   Project->Properties
   select PyDev - PYTHONPATH
   in the External Source Folders Pane button Add source folder
   find the sugar-jhbuild/build/lib/python2.5/site-packages folder
   select button Apply 
   select button OK
   Project->Clean..

When the Pydev IDE does not recognize parts of your objects:

   Window->Preferences
   select Pydev->Interperter - Python
   in the Forced builtin libs panel button New
   Enter the name of the object missing the pieces
   select button button OK
   select button Apply 
   select button OK
   Project->Clean..

When you want to build your project's xo file for distribution

   # assumes you already setup this symbolic link with ./setup.py dev
   pushd ~/Activities/project-activity  
   .setup.py dist
   popd