![]() |
Proper Way to Distribute Python Apps?
I'm trying to figure out the proper way to package my aptly for distribution. Following the Py2deb wiki article, I came up with the following src structure:
Code:
Code:
/usr/lib/python2.5/site-packages/aptly.py
|
Re: Proper Way to Distribute Python Apps?
Your basic structure looks fine.
Your /usr/bin "launchers" can either be shell scripts which launch Python appropriately; Python scripts (without a trailing .py), or symlinks to wherever you want. I've typically used the former. Remember, as a Python app, anything you put in /usr/lib/python2.5 will automatically be put outside of the rootfs, but anything else will be inside it - and so you'll want to minimise the disk usage. |
Re: Proper Way to Distribute Python Apps?
Ok. So I've decided to put everything except for a shell script that calls aptly inside site-packages like so:
Code:
/usr/lib/python2.5/site-packages/aptly Code:
!#/bin/bash |
Re: Proper Way to Distribute Python Apps?
I don't know about the N900... but usually it's recommended in shell scripts to use #!/bin/sh ... for compatibility purposes with systems that either don't have bash, or have it in a different location.
At least.. that's what I've been told before.. (assuming you don't use bash-specific calls) |
Re: Proper Way to Distribute Python Apps?
Quote:
|
Re: Proper Way to Distribute Python Apps?
That is definitely a handy piece of information...
|
Re: Proper Way to Distribute Python Apps?
Doh! can you tell i don't write shell scripts?
Thanks again, third time's a charm |
Re: Proper Way to Distribute Python Apps?
Quote:
Code:
#!/bin/sh
|
Re: Proper Way to Distribute Python Apps?
i had the # before ! in the actual code. it was a typo. good point about the qoutes though
|
All times are GMT. The time now is 09:22. |
vBulletin® Version 3.8.8