Python2.5 is needed when using pygtk on maemo, otherwise the default python2.3 may be enough.
Add "deb http://repository.maemo.org/extras bora free non-free" to /scratchbox/users/maemo/target/SDK_ARMEL/etc/apt/sources.list
- [sbox-SDK_ARMEL: ~] > fakeroot apt-get update
- [sbox-SDK_ARMEL: ~] > fakeroot apt-get install python2.5*
or: (if dependencies fail when install python2.5*, which contains lots of unnecessary packages)
- [sbox-SDK_ARMEL: ~] > fakeroot apt-get update
- [sbox-SDK_ARMEL: ~] > fakeroot apt-get install python2.5-gtk2
- [sbox-SDK_ARMEL: ~] > fakeroot apt-get install python2.5-dev
- [sbox-SDK_ARMEL: ~] > fakeroot apt-get install python2.5-hildon
- [sbox-SDK_ARMEL: ~] > fakeroot apt-get install python2.5-osso
Do NOT remove python or python2.3 or python2.4 before install python2.5, since the python package from the repository is BROKEN. Once removed, never back ...
On N800, python2.5-runtime is needed.
Open Application catalogue (inside Tools, on the application's menu), and add following repositories:
| Name: | Maemo |
| Web address: | http://repository.maemo.org |
| Distribution: | bora |
| Components: | free non-free |
| Name: | Maemo Extras |
| Web address: | http://repository.maemo.org/extras |
| Distribution: | bora |
| Components: | free non-free |
Refresh package list, and then you'll see python2.5-runtime package, which will automatically pull all available python bindings, but not the development packages.
Or, just download python2.5 directly from below:
本文介绍如何在Maemo平台上安装Python2.5,包括添加软件源、使用终端命令安装必需的Python2.5组件,并提供了一个直接下载链接。

被折叠的 条评论
为什么被折叠?



