Editing PyMaemo/Python 2.6 porting guide

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 19: Line 19:
=== Python 2.6 porting guidelines ===
=== Python 2.6 porting guidelines ===
-
Porting a package to support Python 2.6 usually involves actually making it version agnostic. In Maemo versions prior to Fremantle, the packages had hardcoded support for Python 2.5, which can be demonstrated by all Python binding packages having "python2.5-" as prefix, and consequently Python applications also had these names on their Depends fields in debian/control.
+
Porting a package to support Python 2.6 usually involves actually making it version agnostic. In Maemo versions prior to Fremantle, the packages had hardcoded support for Python 2.5, which can be demonstrated by all Python binding packages having "python2.5-" as prefix, and consequently the Python application also had these names on the Depends field.
As long as Fremantle contains Python 2.5, though, packages that worked on Diablo should also work on Fremantle without changes. This happens because PyMaemo packages named python-<something> can also be installed by using python2.5-<something>.
As long as Fremantle contains Python 2.5, though, packages that worked on Diablo should also work on Fremantle without changes. This happens because PyMaemo packages named python-<something> can also be installed by using python2.5-<something>.
-
On the other hand, if we indeed upgrade to Python 2.6, this compatibility will not work anymore, and packages will need modifications so they can work on Fremantle.
+
On the other hand, if we indeed upgrade to Python 2.6, this compatibility will not work anymore, and the packages will be required to be modified so they can work on Fremantle.
-
One possibility we are evaluating is to provide updates to PyMaemo packages in previous Maemo releases (e.g. chinook and diablo) so they can also be installed by using the version agnostic python-<something> name (along the old python2.5-<something> names). This would allow most packages to be uploaded to all three releases (chinook, diablo and fremantle) without requiring specific changes only for Fremantle.
+
One possibility we are evaluating is to provide updates to PyMaemo packages in previous Maemo releases (e.g. chinook and diablo) so they can also be installed by using the version agnostic python-<something> name. This would allow most packages to be uploaded to all three releases (chinook, diablo and fremantle) without requiring specific changes only for Fremantle.
=== Porting tips ===
=== Porting tips ===

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)

Templates used on this page: