PyMaemo/SDK installation

m (PyMaemo/SDKInstallation moved to PyMaemo/SDK installation: Naming convention - no CamelCase)
Line 41: Line 41:
   [sbox-FREMANTLE_X86: ~] > apt-get install python-runtime
   [sbox-FREMANTLE_X86: ~] > apt-get install python-runtime

Revision as of 15:53, 11 February 2010

SDK Installation (scratchbox)

The first thing is to add the Maemo extras repository (where Python is located) to your list of package sources. To do that you will have to edit the file /etc/apt/sources.list inside scratchbox, for both targets (X86 and ARMEL), which should look similar to this:

 deb diablo free non-free
 deb-src diablo free
 deb file:/home/[username]/maemo-sdk-nokia-binaries_4.1.2 diablo explicit

Add the following line to it:

 deb diablo free non-free

Now resynchronize your package index files with the following command:

 [sbox-SDK_X86: ~] > apt-get update

After that you are ready to install python2.5 plus bindings doing this:

 [sbox-SDK_X86: ~] > apt-get install python2.5-runtime

To see all python-related packages issue this command

 [sbox-SDK_X86: ~] > apt-get cache search python*

Note that you'll see also scratchbox's own python (version 2.3) which you must not use for your Maemo development. So, run your scripts explicitly calling python2.5 instead of just python.

Also, some programs require some extra configuration done by the script. Call python with it as follows: python2.5 <>

Instructions for Maemo 5 beta (fremantle)

To install PyMaemo on Maemo 5 beta SDK, follow the same instructions as above (replacing occurrences of "diablo" with "fremantle"), but replace the "extras" repository with the "extras-devel" one:

 deb fremantle free non-free

Also note that the runtime metapackage is now called "python-runtime" (without the Python version), therefore to install the bindings, do:

 [sbox-FREMANTLE_X86: ~] > apt-get install python-runtime