LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

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

Rep: Reputation: 0
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

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

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.
 
  


Reply

Tags
python


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 setup.py install? milomak Linux - Software 1 11-16-2009 09:22 PM
RPM deployment tool valen_tino Red Hat 3 05-29-2009 10:20 AM
cscope like tool for python gobi_dgm Linux - Software 0 12-19-2005 07:29 AM
package managment tool... IwantLINUX Linux - General 6 09-01-2005 08:31 PM
Uninstall a python package danesp Linux - Newbie 8 06-01-2005 11:25 PM


All times are GMT -5. The time now is 04:13 AM.

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