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 pub...@[mysurname].eu -- http://mail.python.org/mailman/listinfo/python-list