Reply
Thread Tools
Munk's Avatar
Posts: 229 | Thanked: 108 times | Joined on Oct 2007 @ Sacramento, California
#1
Hi could someone help me make a deb file for my python based app? I know Qwerty12 has helped a few people with this. My app consists of the following caveats:
  1. Python based app for a project I registered in the Garage
  2. A data directory containing just over 100 supporting files
  3. A data directory for WAV files, by default this should be "\media\mmc2"
  4. The WAV data directory could hold a total of about 10 or more megs.

I'm not releasing the source YET but instead am using a compiled Python file ".pyc". Not until I get a few more bugs wiped out.

Anyways, whoever is interested, please let me know and I will send you everything to get it going.

Pics of the app are to be found in the garage here:
https://garage.maemo.org/projects/traveller/

I'll announce the app once it is uploaded.
 
Posts: 26 | Thanked: 8 times | Joined on Nov 2008
#2
I use pypackager on my N800 to do the packaging. You just need to setup the directory structure like you want it and it build the deb for you. Very simple.
 

The Following 4 Users Say Thank You to dzon@shaw.ca For This Useful Post:
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#3
PyPackager is in Chinook Extras, if you're wondering.

I use it for my projects, too.

If you want more help, contact Jeremiah, our Debmaster. It's his job to help people with Maemo packaging issues.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 

The Following User Says Thank You to qole For This Useful Post:
Munk's Avatar
Posts: 229 | Thanked: 108 times | Joined on Oct 2007 @ Sacramento, California
#4
dzon and qole,

Is there a more detailed step by step tutorial on PyPackager than this one?

http://wiki.maemo.org/PyPackager

It sounds like it's the answer but when it gets to asking about items such as these, I'm not sure what it's really looking for:

  • Binaries Folder = This is Python so is there really a binary? Or is this where I put supporting binaries such as .png files, etc.?
  • Sources Folder = I believe this is where I would point to my primary python folder. But, why is it completely on the other side of the tabs menu?
  • Build-Depends = Is this just a manually typed field where I specify depends upon Python 2.5, PyGame, etc? Wait, no it can't be because that is the "Depends" field.
  • Upload tab = I imagine this will send it up to garage.maemo.org. But, where do I get my GPG email key?
  • Icon Url = So, I have to point to an external URL to use an icon?

Then the buttons at the bottom are a bit cryptic with two of them looking exactly the same. Also, one is save but then what is the disk icon with the pencil on it? The Help-About doesn't show anything either.

Any help would be appreciated.
 
BrentDC's Avatar
Posts: 903 | Thanked: 632 times | Joined on Apr 2008
#5
Just of note, PyPackager-made debs cannot be uploaded to the extras-* repos because the autobuilder won't except them.
__________________
-Brent

Author of TouchSearch -- web searching software for Maemo 5.

Mobile Device lineage: Palm Z22 -> Palm TX -> Nokia N800 -> Nokia N900
 

The Following User Says Thank You to BrentDC For This Useful Post:
Posts: 883 | Thanked: 980 times | Joined on Jul 2007 @ Bern, Switzerland
#6
Pypackager is the easiest way to setup a deb in some way.
Once you know it work, you can then use py2deb to create something suitable for extras-* repositories. Check the wiki - there is an article about it.
 

The Following 2 Users Say Thank You to twaelti For This Useful Post:
Posts: 631 | Thanked: 837 times | Joined on May 2007 @ Milton, Ontario, Canada
#7
Py2Deb is pretty easy to use too, you just need to make sure you setup your config file properly as per the wiki... the only downside to it is that it's not very good and giving you useful errors, so if it doesn't work (or packages nothing) a lot of the time you have to hack up the code to find out where you went wrong... (things like wrong paths, missing a slash, etc)
 
Anunakin's Avatar
Posts: 100 | Thanked: 102 times | Joined on Apr 2008 @ Amazon-Belém
#8
I put all files on a folder like DEBFILES,
and create a DEBIAN folder inside it, with a control file like it:
Code:
Package: cmake
Priority: optional
Section: dev
Installed-Size: 29M
Maintainer: http://www.cmake.org/
Architecture: armel
Version: 2.6.4
Depends: libc6
Description: Cross platform Make
Next, I build .deb...
deb -b DEBFILES package-NUMVERSION.deb
 

The Following 4 Users Say Thank You to Anunakin For This Useful Post:
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#9
Hey, Khertan quietly added a section to the py2deb wiki article about how to add your pre / post install scripts to the build_myapp.py program. I'm not entirely clear on how this works (enclose the entire script in triple quotes? That's all?) but that is good news. I can probably use that script to package my Easy Debian stuff now... And with Fremantle coming, that's something I want to do.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 

The Following User Says Thank You to qole For This Useful Post:
jeremiah's Avatar
Posts: 170 | Thanked: 261 times | Joined on Feb 2009 @ Gothenburg, Sweden
#10
I'd be happy to help too! You can fire off an email or we can talk here, or even on IRC at #maemo.

It looks like you have already got some good advice.

Jeremiah
 

The Following User Says Thank You to jeremiah For This Useful Post:
Reply

Tags
traveller python


 
Forum Jump


All times are GMT. The time now is 12:29.