#1  
Old 10-30-2011, 03:29 PM
rcolistete rcolistete is offline
Member
 
Join Date: Jun 2011
Posts: 39
Thanked: 42 times
Default Packaging Python programs in Harmattan ?

I am used to package my Python programs (SymPy, Integral, Derivative and Limit for Maemo 4 Diablom & Maemo 5 Fremantle) using PyPackager (i.e., running "python make.py" on Maemo 5 X-terminal).

For MeeGo 1.2 Harmattan, I have found some possible ways of packaging, using :

- Harmattan SDK (used by the C++/QML community) for any Harmattan software :
Packaging your application with Harmattan Platform SDK
Harmattan Appendix to the Debian Policy Manual
http://forum.meego.com/showpost.php?p=29345&postcount=3

- PySide Assistant (running on Linux/Ubuntu) for Fremantle/Harmattan/Ubuntu Python softwares :
http://wiki.meego.com/Python/pyside-assistant

- sdist_maemo and MaemoPythonSkeleton for Maemo 4, Maemo 5, MeeGo Harmattan and Ubuntu Python softwares :
http://eopage.blogspot.com/2011/08/p...harmattan.html
https://github.com/epage/MaemoPythonSkeleton

- PyPackager for Harmattan (but the .deb is not yet available) :
https://build.pub.meego.com/package/...home%3Akhertan

I have tried to use PyPackager on Maemo 5 (Nokia N900) to create a gerenic python-sympy.deb and install on Nokia N950/N9 but the installation fails.

Well, what is the simplest way of packaging Python softwares por MeeGo Harmattan (N950/N9) ?

I would like to package SymPy for MeeGo Harmattan as soon as possible.

Thanks in advance,

Roberto

Last edited by rcolistete; 11-13-2011 at 04:24 PM. Reason: Updated the Harmattan web links which were broken
Reply With Quote

The Following User Says Thank You to rcolistete For This Useful Post:
  #2  
Old 10-31-2011, 12:45 PM
caco3 caco3 is offline
Senior Member
 
Join Date: Apr 2011
Location: Switzerland
Posts: 173
Thanked: 57 times
Default Re: Packaging Python programs in Harmattan ?

I am using scratchbox to pack my Python-Applications.
Its a huge overhead, but as I had it already set up for Maemo5, I continued this way with Harmattan.
Reply With Quote

The Following User Says Thank You to caco3 For This Useful Post:
  #3  
Old 10-31-2011, 08:08 PM
alphax2 alphax2 is offline
Member
 
Join Date: Jul 2011
Posts: 51
Thanked: 16 times
Default Re: Packaging Python programs in Harmattan ?

I am using pyside-assistant (Ubuntu Natty Build from PPA works also in 11.10).

BUT: pyside-assistant want the *.py File at /usr/bin and qml stuff at /usr/share/<appname>/qml :-/

I'am not sure if this is correct, because I thought apps should go to /opt ?!
There are some guidelines?

AlphaX2
Reply With Quote

The Following User Says Thank You to alphax2 For This Useful Post:
  #4  
Old 11-01-2011, 05:43 PM
martink martink is offline
Member
 
Join Date: Feb 2011
Posts: 45
Thanked: 21 times
Default Re: Packaging Python programs in Harmattan ?

IIRC, installing apps to /opt is no longer needed Harmattan as the root partition has enough space and thought /opt still exists (mostly for compatibility reasons) it resides on root anyway.
__________________
Mieru - a flexible manga and comic book reader
Harmattan development resources
Reply With Quote

The Following User Says Thank You to martink For This Useful Post:
  #5  
Old 11-08-2011, 11:49 PM
rcolistete rcolistete is offline
Member
 
Join Date: Jun 2011
Posts: 39
Thanked: 42 times
Default Re: Packaging Python programs in Harmattan ?

Thanks for the answers.

I have succeeded packaging SymPy (python-sympy) using PySide-Assistant running on Ubuntu 10.04 64 bits (well, I have had to download the .deb of pyside-assistant for Ubuntu 10.10). PySide-Assistant (in my opinion) :
- is simpler than packaging with Harmattan SDK (scratchbox) but more complex than using pypackager running on N900;
- doesn't have many examples in Internet to learn how to use in many cases (packaging libraries, softwares with icons, etc);
- hasn't full documentation for some metadata/details of the package;
- for example I dont't see where I control the final number of version of the package, i.e., the last "1" in "python-sympy_0.7.1-harmattan-1_all.deb". In "pypackager" (for Maemo 4 & 5) these and other details where easy to control.

I wil try to package SymPy using Harmattan SDK and sdist_maemo to compare different packaging methods.
Reply With Quote

The Following User Says Thank You to rcolistete For This Useful Post:
  #6  
Old 11-09-2011, 06:13 AM
alphax2 alphax2 is offline
Member
 
Join Date: Jul 2011
Posts: 51
Thanked: 16 times
Default Re: Packaging Python programs in Harmattan ?

Quote:
Originally Posted by martink View Post
IIRC, installing apps to /opt is no longer needed Harmattan as the root partition has enough space and thought /opt still exists (mostly for compatibility reasons) it resides on root anyway.
This is good to hear and know. But since SSH don't let you ssh as root, it would be a bit more comfortable, because user can r/w /opt without any problems.

AlphaX2
Reply With Quote

The Following 2 Users Say Thank You to alphax2 For This Useful Post:
  #7  
Old 11-13-2011, 04:36 PM
rcolistete rcolistete is offline
Member
 
Join Date: Jun 2011
Posts: 39
Thanked: 42 times
Default Re: Packaging Python programs in Harmattan ?

Now it was the turn of packaging using Harmattan SDK (scratchbox on Ubuntu 10.04). I have successfully packaged SymPy (full Python project). My opinion about packaging with Harmattan SDK (scratchbox) :
- initially it is a lot more complex than other ways of packaging (pypackager @ N900, PySide-Assistant, etc), but after some learning (including from the files created by PySide-Assistant) and making 1 or 2 packages, it is not so difficult to package;
- it has good documentation and many examples all over Internet to learn;
- it gives full access to metadata/details of the package, like control the full name/version of the package, include homepage of the project, original maintainer, display name for application manager, bugtracker, etc;
- it is excellent to port & package Linux projects to MeeGo Harmattan, written in Python or not, see :
Packaging your application with Harmattan Platform SDK

I will also try packaging with sdist_maemo and pypackager for MeeGo Harmattan.
Reply With Quote

The Following User Says Thank You to rcolistete For This Useful Post:
  #8  
Old 04-25-2012, 12:35 AM
xen's Avatar
xen xen is offline
Junior Member
 
Join Date: May 2011
Location: Potsdam, Germany
Posts: 8
Thanked: 12 times
Send a message via Skype™ to xen
Default Re: Packaging Python programs in Harmattan ?

Quote:
Originally Posted by alphax2 View Post
I am using pyside-assistant (Ubuntu Natty Build from PPA works also in 11.10).

BUT: pyside-assistant want the *.py File at /usr/bin and qml stuff at /usr/share/<appname>/qml :-/

I'am not sure if this is correct, because I thought apps should go to /opt ?!
There are some guidelines?

AlphaX2
I'm using pyside-assistant too but there is a problem. In theorie you don't have to optify packages for harmattan but the Nokia Ovi store QA process forces you to optify them anyway.
So now I have no idea how to teach my pyside assistant to optify my packages.

Anyone with an idea on this?
__________________
XG_
Reply With Quote
  #9  
Old 05-08-2012, 10:49 PM
alphax2 alphax2 is offline
Member
 
Join Date: Jul 2011
Posts: 51
Thanked: 16 times
Default Re: Packaging Python programs in Harmattan ?

Quote:
Originally Posted by xen View Post
I'm using pyside-assistant too but there is a problem. In theorie you don't have to optify packages for harmattan but the Nokia Ovi store QA process forces you to optify them anyway.
Same here! My main problem is that I need to set tokens at aegis manifest file and psa do this without any problem!

So, how to optify packages!?

Thanks a lot in advance!

AlphaX2
Reply With Quote
  #10  
Old 05-11-2012, 09:49 AM
alphax2 alphax2 is offline
Member
 
Join Date: Jul 2011
Posts: 51
Thanked: 16 times
Default Re: Packaging Python programs in Harmattan ?

You'll find a how to here: http://forum.meego.com/showthread.php?t=5880

AlphaX2
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unintalling programs godoyeduardo85 Netbook 1 10-22-2011 10:03 PM
Harmattan, Python and PySide with QML mattaustin Application Developer Support 9 08-14-2011 11:29 PM
Anyone packaging boost for Harmattan arm? mdengler Application Developer Support 5 08-01-2011 11:28 PM
Packaging for MeeGo gevatter Application Developer Support 0 05-25-2011 03:38 PM
Programs over ssh are always in the back lullen Netbook 0 01-19-2011 07:14 AM


All times are GMT. The time now is 04:40 AM.