View Single Post
Posts: 1,269 | Thanked: 3,961 times | Joined on May 2011 @ Brazil
#50
Originally Posted by rcolistete View Post
Any tests on real Jolla smartphone with Python ???
Tested on Sailfish @ Nokia N9 :

1) Python is not installed by default, but it is simple to install v2.7.5 using Terminal :
$ pkcon install python

2) mer-tools repository is not enabled by default, but can be :
Code:
$ devel-su
# ssu ar mer-tools
# ssu ur
$ pkcon refresh
mer-tools has many tools, including more Python modules, see here and there.

3) adding repositories is done with "zypper ar -G", because without the option "-G" (--no-gpgcheck, Disable GPG verification for this repository) the Jolla Store stops working (it can't install any software).
For example, mer-python3 (with Python 3.3 and PyOtherSide) :
PHP Code:
# zypper ar -G http://repo.merproject.org/obs/mer-python3/latest_armv7hl/mer-python3.repo
# zypper ref
# zypper in python3-base pyotherside-qml-plugin-python3-qt5 
Or my rcolistete repository with Python tools and modules (IPython, SymPy, NumPy, Uncertainties) :
PHP Code:
# zypper ar -G http://repo.merproject.org/obs/home:/rcolistete/latest_armv7hl/ rcolistete
# zypper ref
# zypper in ipython python-sympy python-numpy 
IPython shows a warning saying PySide is not available (needed for IPython Qt console), you can force installation by choosing "2", so "ipython" (terminal console) and "ipython notebook" will work (the Sailfish web browser works very well with IPython Notebook).
SymPy and NumPy also work well on Sailfish.
__________________
Python, C/C++, Qt and CAS developer. For Maemo/MeeGo/Sailfish :
Integral, Derivative, Limit - calculating mathematical integrals, derivatives and limits. SymPy - Computer Algebra System.
MatPlotLib - 2D & 3D plots in Python. IPython - Python interactive shell.
-- My blog about mobile & scientific computing ---
Sailfish : Sony Xperia X, Gemini, Jolla, Jolla C, Jolla Tablet, Nexus 4. Nokia N9, N900, N810.

Last edited by rcolistete; 2013-12-16 at 05:42.
 

The Following 4 Users Say Thank You to rcolistete For This Useful Post: