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

John Nagle nagle at animats.com
Wed Nov 18 15:53:33 EST 2009


     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?

   If I package and build my app, it packages properly, and
unpacks and builds into

	Messager1.0/build/lib

which is appropriate for a library, but not an application.
Here's the setup file.


distutils.core.setup(
	name='Messager',
	description="Baudot Teletype RSS and SMS program",
	version='1.0',
	author="John Nagle",
	author_email="nagle at animats.com",
	packages=['messager'],
	requires=['pyserial', 'feedparser']
     )


					John Nagle



More information about the Python-list mailing list