Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-06-2010, 02:36 PM   #1
tank junior
Registered: Apr 2010
Posts: 42

Rep: Reputation: 0
python package deployment tool


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
3. Copy python(executable) and into "dist"
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 "". You can download the archive from here:
(Note : It's for linux users)

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

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.



Last edited by tank junior; 07-06-2010 at 02:38 PM.
Old 07-06-2010, 02:57 PM   #2
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 502

Rep: Reputation: 56
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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I uninstall a python package installed with python install? milomak Linux - Software 1 11-16-2009 10:22 PM
RPM deployment tool valen_tino Red Hat 3 05-29-2009 11:20 AM
cscope like tool for python gobi_dgm Linux - Software 0 12-19-2005 08:29 AM
package managment tool... IwantLINUX Linux - General 6 09-01-2005 09:31 PM
Uninstall a python package danesp Linux - Newbie 8 06-02-2005 12:25 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration