from distutils.core import setup


def refresh_plugin_cache():
    from twisted.plugin import IPlugin, getPlugins
    list(getPlugins(IPlugin))

setup(name='tryfer',
      version='0.1',
      description='Twisted Zipkin Tracing Library',
      packages=['tryfer', 'tryfer._thrift', 'tryfer.tests'])

refresh_plugin_cache()

@@ -26,16 +26,60 @@
 t setup%0A
+from twisted.python.dist import getPackages%0A
 %0A%0Adef re
@@ -295,52 +295,29 @@
 ges=
-%5B'tryfer', 'tryfer._thrift', 'tryfer.tests'%5D
+getPackages('tryfer')
 )%0A%0Ar

use getPackages in setup.py