LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   python package deployment tool (http://www.linuxquestions.org/questions/linux-newbie-8/python-package-deployment-tool-818325/)

tank junior 07-06-2010 01:36 PM

python package deployment tool
 
Hi,

I am writing a python package deployment tool for linux based
platforms. I have tried various existing
tool sets but none of them is up to the mark and they have their own
issues. Initially I'll start with simple approach.

1. Find all the modules/packages and copy to "lib" directory.
2. Find python's *.so dependencies(system libs) and copy them to
"syslib"
3. Copy python(executable) and libpython2.6.so.1.0 into "dist"
directory.
4. Set up temp environment
5. Run main script using "python <main script>.py"

The idea is to produce a cleaner directory structure. Neither I am
creating a boot loader nor I am converting main script
file into executable. It's plain vanilla stuff.

Using above steps I have pulled down a package using wxPython's demo
example "pySketch.py". You can download the archive from here:
http://rapidshare.com/files/405255400/dist.zip
(Note : It's for linux users)

After extracting the contents, run the executable file using "./run".
This file sets temporary environment variables and execute
"pySketch.py"

This is eventually not working. I think I am not able to set up
temporary environment properly or may be missing some other
stuff. I would appreciate if some one can point out mistakes.

Cheers

Prashant

teebones 07-06-2010 01:57 PM

eeehm... maybe i understood you wrongly, but:

there are already "ready to distribute" builders available. (which contains everything needed to run the app, incl python libs)

and there is also byte compile build into python. Since most, if not all, linux distributions have python installed, it's a matter of distributing the .pyc files.


All times are GMT -5. The time now is 09:36 PM.