The Mer Wiki now uses your Mer user account and password (create account on https://bugs.merproject.org/)
Sailfish/Python Development
From Mer Wiki
< Sailfish(Difference between revisions)
Mattaustin (Talk | contribs) m |
Mattaustin (Talk | contribs) (Added pyqt installation instructions) |
||
Line 35: | Line 35: | ||
* Available from [[OpenRepos.net]] <ref>[http://talk.maemo.org/showpost.php?p=1399545&postcount=54 TMO: xerxes2 packages PyQt for Sailfish OS]</ref>. | * Available from [[OpenRepos.net]] <ref>[http://talk.maemo.org/showpost.php?p=1399545&postcount=54 TMO: xerxes2 packages PyQt for Sailfish OS]</ref>. | ||
* Not supported in [[Jolla Harbour]]. | * Not supported in [[Jolla Harbour]]. | ||
+ | |||
+ | PyQt can be installed by adding the sailfish_libs repo: | ||
+ | : <code>ssu addrepo sailfish_libs <nowiki>http://sailfish.openrepos.net/sailfish_lib/personal/main</nowiki></code> | ||
+ | : <code>ssu updaterepos</code> | ||
+ | : <code>pkcon refresh</code> | ||
+ | : <code>pkcon install pyqt</code> | ||
Revision as of 09:52, 22 December 2013
Python 2.7 is provided in the "jolla" repository, and can be installed using pkcon:
-
pkcon install python
Contents |
Python 3
Python 3.3 is provided in the mer-python3 repository. This can be added using ssu, and then installed using pkcon:
-
ssu addrepo mer-python3 http://repo.merproject.org/obs/mer-python3/latest_armv7hl/
-
ssu updaterepos
-
pkcon refresh
-
pkcon install python3-base
Python and Qt 5
There are currently two options for developing Python Qt 5 apps on Sailfish OS: PyOtherSide and PyQt. PySide does not currently support Qt5.
PyOtherSide
PyOtherSide homepage | PyOtherSide on github
- Requires Python 3.
- Available in
mer-python3
repo. - Will be supported in Jolla Harbour "soon" [1][2].
The PyOtherSide QML plugin can be installed using pkcon:
-
pkcon install pyotherside-qml-plugin-python3-qt5
PyQt
PyQt homepage | PyQt for Sailfish OS on OpenRepos.net
- Available from OpenRepos.net [3].
- Not supported in Jolla Harbour.
PyQt can be installed by adding the sailfish_libs repo:
-
ssu addrepo sailfish_libs http://sailfish.openrepos.net/sailfish_lib/personal/main
-
ssu updaterepos
-
pkcon refresh
-
pkcon install pyqt
Links