Linux Forums - Linux Help,Advice & support

Linux in General => Linux Development & Programming => Topic started by: kiranpulsar2007 on December 06, 2010, 07:13:28 AM

Title: Packaging in Python
Post by: kiranpulsar2007 on December 06, 2010, 07:13:28 AM
Dear All,

I python program which print "Hello World".

I want to run this program in 100 system.

I dont want to copy and run this script. I want to make .deb package which is easy to install by gui double click itself.

Is this possible ?, If yes, how to do.

PS: I am not using glade and quickly.

It's plain script python file, which will do some automation.say like text processing.

So I no need gui. but the python script should be installable one as like deb/exe.

Thanks in advance.
Title: Re: Packaging in Python
Post by: SaintDanBert on July 25, 2012, 11:02:24 PM
Once your have a working script, all that an end-user requires is the following:

1.  The script have the correct first line comment -- called a "she-bang" line
          #!{path to program}/python
          #... the rest of your script
2.  The script file have permission to execute: 
          prompt$ 'chmod  a+x {script file name}'
3.  The script file reside in a folder that is listed in the PATH environment variable
          -- start with your per-user $HOME and add $HOME/bin; place the script here
          -- when you are thoroughly satisfied with the script, move it to /usr/local/bin or similar
         ( The default environment PATH already has /usr/local/bin present. )

Good Luck,
~~~ 0;-Dan