maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Python & Qt5 on Sailfish (https://talk.maemo.org/showthread.php?t=91049)

m4r0v3r 2014-04-01 13:39

Re: Python & Qt5 on Sailfish
 
Quote:

QMAKE_CXXFLAGS += -I/usr/local/include/python3.4m -I/usr/local/include/python3.4m
With that set I receive a Python.h: No such file or directory when attempting to build pyotherside.

I've tried different versions of Python and none work, I've had to explicitly give it the command since no matter what I set :

Quote:

PYTHON_CONFIG = python3.4m-config
Doesn't work, it never ever finds the command

rcolistete 2014-05-11 19:56

Re: Python & Qt5 on Sailfish
 
Some more updated information about :

1) Python on Sailfish :
- it has a wiki Sailfish/Python Development page;
- Python 3.3.3 (and later 3.4.0) is in Sailfish official repositories since Sailfish v1.0.3.8 (31/01/2014);
- it can be installed as a dependency for other software (gPodder, etc) or by manual installation with :
$ pkcon install python3-base
- it is expected to be accepted in Jolla Harbour "soon".

2) PyOtherSide (http://thp.io/2011/pyotherside/) :
- is in Sailfish official repositories since Sailfish v1.0.3.8 (31/01/2014);
- it can be installed as a dependency for other software (gPodder, etc) or by manual installation with :
$ pkcon install pyotherside-qml-plugin-python3-qt5
- has newer versions 1.1 and 1.2 released in 2014;
- is being used by more than 10 Sailfish softwares, and by BlackBerry (10) softwares;
- it is expected to be accepted in Jolla Harbour "soon";
- it as available in Arch Linux repositories and Ubuntu PPA;
- it is cited by the wiki Sailfish/Python Development page.

3) PyQt 5.1.1 :
- is available in OpenRepos.net, with version for Python 2.7 (pyqt) and version for Python 3 (python-pyqt);
- it is cited by the wiki Sailfish/Python Development page.

So Python 3 & Qt 5 development is well supported in Sailfish, so it is time for Python developers to release their softwares for Sailfish. :cool:

evk 2014-05-15 20:35

Re: Python & Qt5 on Sailfish
 
As far as I understand, PyOtherSide is only available for python 3. That's fine, I like python 3. But there aren't many more python 3 packages, so you're restricted to python-base?

rcolistete 2014-05-15 22:52

Re: Python & Qt5 on Sailfish
 
Quote:

Originally Posted by evk (Post 1425536)
As far as I understand, PyOtherSide is only available for python 3. That's fine, I like python 3. But there aren't many more python 3 packages, so you're restricted to python-base?

There are only few Python 3 modules at the moment for Sailfish, but they are being ported, look at Mer COBS and OpenRepos.net for Python 3. Today I've packaged Uncertainties and SymPy for Python 3, by the way.

evk 2014-05-16 15:45

Re: Python & Qt5 on Sailfish
 
OK, great. It's not a big problem for right now since I'm mostly playing around and can always use C++ if I do something serious.

And I'm getting a bit impressed by QML, some rather powerfull stuff can be done.

xerxes2 2014-05-19 08:32

Re: Python & Qt5 on Sailfish
 
Quote:

Originally Posted by rcolistete (Post 1424946)
Some more updated information about :
- Python 3.3.3 (and later 3.4.0) is in Sailfish official repositories since Sailfish v1.0.3.8 (31/01/2014);

Hey thanks for the heads up. :) I just made a PyQt package for py3 too. So on ORN pyqt is for py2 and python-pyqt is for py3. As mentioned earlier there is not that much support yet for py3 in sailfish so I'll keep supporting pyqt for py2 as long as upstreams does, probably a few more years.

rcolistete 2014-05-19 17:01

Re: Python & Qt5 on Sailfish
 
Quote:

Originally Posted by xerxes2 (Post 1425931)
Hey thanks for the heads up. :) I just made a PyQt package for py3 too. So on ORN pyqt is for py2 and python-pyqt is for py3. As mentioned earlier there is not that much support yet for py3 in sailfish so I'll keep supporting pyqt for py2 as long as upstreams does, probably a few more years.

Excellent, so we have 3 options for Python-Qt bindings : PyQt for Python 2.7 & 3, PyOtherSide for Python 3.

Could you make it more explicit that python-pyqt on OpenRepos.Net is for Python 3 ? The only mention is the 1st line after the "%build".

I've updated the post #83.

xerxes2 2014-05-19 17:33

Re: Python & Qt5 on Sailfish
 
I updated the wikipage now with regards to pyqt and also added a software section where we could list all available python apps for sailfish, I found six so far. And hopefully plenty in the oven too. :)

https://wiki.merproject.org/wiki/Sai...pment#Software

rcolistete 2014-05-22 19:14

Re: Python & Qt5 on Sailfish
 
Quote:

Originally Posted by xerxes2 (Post 1425996)
I updated the wikipage now with regards to pyqt and also added a software section where we could list all available python apps for sailfish, I found six so far. And hopefully plenty in the oven too. :)

https://wiki.merproject.org/wiki/Sai...pment#Software

Thanks, I've followed your work and inserted more Python applications (14 until now) for Sailfish :
https://wiki.merproject.org/wiki/Sai...pment#Software
Source-code (GitHub) links were placed when available, they are very useful to other developers to see other softwares as code examples.

xerxes2 2014-05-23 20:19

Re: Python & Qt5 on Sailfish
 
Yeah it looks good ... and so many Python apps already. 13-1 in favor of pos vs pyqt. :) And I added a little bit more info about the differences between pos and pyqt. Feel free to edit/add more info if you like. I never really used pos so I don't know that much about it.

And does anyone know about the situation of introspection in Sailfish? I can't seem to find it so it may not exist at all. If not we must get Jolla to add introspection support for packages they maintain in core Sailfish. I can make an example already that I'll need and that is Gstreamer-1. But the whole G stack with Glib, Gio, Cairo, Pango, Telepathy and possibly some more are only supported from Python with introspection and it would be nice if Jolla would support these with -intro packages.

And if anyone is missing Python libs just ask and I'll try to package them for you. They must be compatible with core Sailfish though as I'll not upgrade such packages.


All times are GMT. The time now is 01:47.

vBulletin® Version 3.8.8