Package logilab-common-0 :: Package 36 :: Package 1 :: Module twisted_distutils
[frames] | no frames]

Module twisted_distutils

source code

Distutils extensions for twisted framework.

This module enables the installation of plugins.tml files using standard
distutils syntax. It adds the following commands to the standard
setup.py commands:
 - build_twisted_plugins: build (i.e. copy) plugins
 - install_twisted_plugins: install plugins

Additionally, the following commands have been modified to deal with
plugins files:
 - sdist
 - build
 - install

To use these extenstion, you should import the setup fonction from this
module, and use it normally. To list the plugins.tml files, use the
twisted_plugins keyword argument to the setup function::

  from twisted_distutils import setup # you can also import Extension if needed

  if __name__ == '__main__':
      setup(name='my_twisted_app',
            version='1.0',
            author='me',
            packages=['my_package'],
            twisted_plugins = ['my_package/plugins.tml'])

Note that you can use this to install files that are not twisted plugins in any
package directory of your application.

:copyright: 2000-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
:license: General Public License version 2 - http://www.gnu.org/licenses

Classes
  twisted_sdist
  twisted_install
  twisted_build
  build_twisted_plugins
  install_twisted_plugins
  TwistedDistribution
Functions
 
setup(**attrs) source code