December 21, 2014, 10:42:27 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Packaging in Python  (Read 1650 times)

Offline kiranpulsar2007

  • New Member
  • Posts: 1
Packaging in Python
« 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.

Offline SaintDanBert

  • New Member
  • Posts: 1
Re: Packaging in Python
« Reply #1 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