Using "setup.py" for an application, not a library module.

Alan Franzoni doesnotexist at franzoni.invalid
Wed Nov 18 17:55:19 EST 2009


On 11/18/09 9:53 PM, John Nagle wrote:
>     Most of the documentation for "setup.py" assumes you're packaging a
> library module. (Ref: "http://docs.python.org/distutils/setupscript.html")
> How do you properly package an application?  What happens
> on "setup.py install"?  Where does the application get installed?  Where
> does
> the main program go?

Usually, just package the lib and from your "main program" (e.g. the
script that goes in /usr/bin, for instance), do just something like that:

#!/usr/bin/python
from mylib import main
import sys

sys.exit(main())


-- 
Alan Franzoni
contact me at public@[mysurname].eu



More information about the Python-list mailing list