How do I write a setup.py for a twistd/twisted plugin that works with setuptools, distribute, etc?

前端 未结 4 1500
礼貌的吻别
礼貌的吻别 2020-12-23 12:21

The Twisted Plugin System is the preferred way to write extensible twisted applications.

However, due to the way the plugin system is structured (plugins go into a

4条回答
  •  忘掉有多难
    2020-12-23 12:50

    Here is a blog entry which describes doing it with 'package_data':

    http://chrismiles.livejournal.com/23399.html

    In what weird ways can that fail? It could fail if the installation of the package doesn't put the package data into a directory which is on the sys.path. In that case the Twisted plugin loader wouldn't find it. However, all installations of Python packages that I know of will put it into the same directory where they are installing the Python modules or packages themselves, so that won't be a problem.

提交回复
热议问题