I developed a program consisting of a package which is executable (i.e. two files x/__init__.py
and x/__main__.py
), so I can execute it using python -m x
, if the package resides in the python path.
I never tried to distribute Python packages/modules and I don't have any experience in that field (yet)... I already noticed that there are many different systems and now I have three questions:
Which system is appropiate for a Python 3(.2) program? distribute? distutils? setuptools?
How can I add kind of a "wrapper script" to the distribution that executes the module directly without the hassle with
python -m …
so that the user can just type x (of course the actual name is a bit more unique :) on the shell.How can I do 2. in a platfom-independent way?
Thanks! :)