Pygame for MeeGo

Since making Heebo, which was mostly in JavaScript, I’ve wanted to try some other dynamically typed high-level language, but with a bit more structure than JavaScript (e.g. strongly typed). I thought Python might be in turn. I did some Python development 15 years ago (is it that long ago!?) but there has been some changes so I needed to read up a bit on the language. I used O’Reilly’s Learning Python back then, so I got the newest edition in a DRM-free ePub format. Turns out the book has grown from about 350 pages to more than 1200 pages! I thought Python was supposed to be simple! :-)

Anyway, Pygame was recently ported and officially supported on the MeeGo platform, so I decided to try that out. Also Pygame works on the desktop and even on Android (although I haven’t tried that out yet), so I’ve got an exit strategy… :-)

Python is really easy to install on the Nokia N9 or N950 and the development cycle is much quicker, since you don’t need to create an installable package and install it every time you want to test something. Still, at some point you need to make real .deb package, e.g. if you want to publish you software somewhere. The PySide community (“Python for Qt”) have a handy tool called pyside-assistant which works fine for non-Qt Python stuff as well. Just follow the instructions on the MeeGo wiki.

In addition, you might want to make sure that most of your files are installed under /opt/yourappsname as is expected of applications e.g. in the Ovi Store. I struggled a bit to figure this one out, but it is actually very simple. Just add a file called setup.cfg in your project’s root directory with the following contents:

[install]
install_lib = /opt/yourappsname/lib
install_scripts = /opt/yourappsname

Where, naturally, you should replace yourappsname with the name of your application. Then you might want to edit the .desktop file to point to the right place for the binary, and you are (more or less) set to go!

Posted by Mats Sjöberg.