See the twisted.python.dist module to understand installation process for the twisted subprojects.
For real example check any plugin of the Twisted and make setup.py file in  your own project directory.
Be careful, in the twisted subprojects  setup  modules is in the topfiles directory. It necessary for the
twisted's release script, you don't need it if you plugin isn't under twisted maintainence.

Chris Miles wrote:
I want to deploy my Twisted app as a Twisted Application Plugin for twistd as per
http://twistedmatrix.com/projects/core/documentation/howto/tap.html

I want to distribute my app as a tarball, so the user would untar it and run "python setup.py install".  Then they would run "twistd myapp" to start it.

How do I configure setup.py so that twisted/plugins/myapp.py is created?

Where do I create the twisted/plugins directory?

(I see how this works if I run twistd from the directory containing twisted/plugins, or if I set PYTHONPATH, but I don't expect my users to have to do this).

Cheers,
Chris


_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python


-- 
"""
Best regards, 
Alexander Burtsev, 
Web Development Department, TV Channel 'Sport' 
"""