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)
Jump to: navigation, search
(Python 3: Now in official repos)
(PyOtherSide)
Line 18: Line 18:
 
[http://thp.io/2011/pyotherside/ PyOtherSide homepage] | [https://github.com/thp/pyotherside PyOtherSide on github]
 
[http://thp.io/2011/pyotherside/ PyOtherSide homepage] | [https://github.com/thp/pyotherside PyOtherSide on github]
  
* Requires [[#Python 3|Python 3]].
+
Starting with Sailfish OS 1.0.3.8, PyOtherSide is now available in the official repos.
* Available in <code>mer-python3</code> repo.
+
* Will be supported in [[Jolla Harbour]] "soon" <ref>[https://harbour.jolla.com/faq Jolla Harbour FAQ]</ref><ref>[http://www.merproject.org/logs/%23nemomobile/%23nemomobile.2013-12-03.log.html#t2013-12-03T12:50:26 thp discusses PyOtherSide and Jolla Harbour]</ref>.
+
  
 +
* Will be supported in [[Jolla Harbour]] "soon": https://together.jolla.com/question/6116/python-application-support-in-jolla-store-harbour/
  
After adding the [[#Python 3|mer-python3 repo]], the PyOtherSide QML plugin can be installed using [[pkcon]]:
+
The PyOtherSide QML plugin can be installed directly without adding any addition repos using [[pkcon]]:
: <code>pkcon install pyotherside-qml-plugin-python3-qt5</code>
+
  
 +
: <code>pkcon install pyotherside-qml-plugin-python3-qt5</code>
  
 
== PyQt ==
 
== PyQt ==

Revision as of 09:30, 5 February 2014

Python 2.7 is provided in the "jolla" repository, and can be installed using pkcon:

pkcon install python


Contents

Python 3

Starting with Sailfish OS 1.0.3.8, Python 3.3.3 and PyOtherSide are shipped in the official repositories.

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

Starting with Sailfish OS 1.0.3.8, PyOtherSide is now available in the official repos.

The PyOtherSide QML plugin can be installed directly without adding any addition repos using pkcon:

pkcon install pyotherside-qml-plugin-python3-qt5

PyQt

PyQt homepage | PyQt for Sailfish OS on OpenRepos.net


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 sailfish_libs
pkcon install pyqt


Links


  1. TMO: xerxes2 packages PyQt for Sailfish OS
Personal tools