veena
veena

Reputation: 865

creating installer package in linux

I have created a folder in which I kept all my python files. I have added __init__.py to that folder to create it as package. The main file is test.py in which I give input.

for example :

<filename>.py 10 20

Now, I have a package. I want to create installer from that package so that, other persons will download that package and install it as normal installation occurs in linux.

so that, after installation by typing test linux user should able to use my application.

example :

<filename> 10 20

How can I proceed to create such installer in linux for my package?

Upvotes: 0

Views: 331

Answers (1)

icedtrees
icedtrees

Reputation: 6466

  1. init.py should be __init__.py to be the initialisation script for a package. is caused by markdown (thanks) and is annoying.
  2. A good way to create an installer (distutils) for a package is to create a setup.py file. A guide to writing this can be found here. Once you write this script and include it in your package, the user will be able to install it by running "[sudo] python setup.py [options]"

Upvotes: 2

Related Questions