maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [Python] [Harmattan] Help with packaging apps (https://talk.maemo.org/showthread.php?t=86620)

rcs1000 2012-09-06 10:31

[Python] [Harmattan] Help with packaging apps
 
Hello,

I'm really struggling to understand how to package a Python/QT app I have written for the N9.

My theory (perhaps naively) is that I would use pyside-assistant/psa to create a directory, put my files inside the directory, and then use setup.py to point to the 'script' (the file that should be 'run') and the modules used.

But upon running psa build-deb, while I get no errors in the psa log file (everything seems to work), no .deb file is created, and I get a 'Failed to build initial package.' error on the command line.

Even when I try and strip everything to an absolute minimum, with a simple main.py containing just 'print "hello"', with setup.py pointing to main as the only module and the only script, it fails.

Can anyone help?

Please...

Thanks

Robert

ZogG 2012-09-06 10:33

Re: [Python] [Harmattan] Help with packaging apps
 
https://github.com/khertan/PyPackager That might be helpful

Jeffrey04 2012-09-06 11:00

Re: [Python] [Harmattan] Help with packaging apps
 
I am lazy, so I use QtCreator to package my scripts.

This is the .pro file for one of my project: https://bitbucket.org/jeffrey04/rest...de-toggler.pro


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

vBulletin® Version 3.8.8