import os
import sys
import imp
import platform
from distutils.core import setup

if sys.version_info < (2, 5):
    print >> sys.stderr, "Error: AbuseHelper requires Python 2.5 or higher",
    print >> sys.stderr, "(you are running %s)." % platform.python_version()
    sys.exit(1)

def generate_version():
    base_path, _ = os.path.split(__file__)
    module_path = os.path.join(base_path, "abusehelper", "core")

    module_info = imp.find_module("version", [module_path])
    version_module = imp.load_module("version", *module_info)
    
    version_module.generate(base_path)
    return version_module.version_str()
version = generate_version()

setup(name="abusehelper",
      version="2." + version,
      packages=[
        "abusehelper", 
        "abusehelper.core", 
        "idiokit", 
        "abusehelper.contrib",
        "abusehelper.contrib.confgen",
        "abusehelper.contrib.archivebot",
        "abusehelper.contrib.bridgebot"],
      package_dir={
        'abusehelper.contrib': 'contrib',	
        'abusehelper.contrib.confgen': 'contrib/confgen',
        'abusehelper.contrib.archivebot': 'contrib/archivebot',
        'abusehelper.contrib.bridgebot': 'contrib/bridgebot'
	},
      package_data={
        'abusehelper.contrib.confgen':
            [
            'confgen/*.py',
            'confgen/config-template/*.py',
            'confgen/config-template/custom/*.py',
            'confgen/config-template/template/default'
            ]
        },
      description="A framework for receiving and redistributing abuse feeds",
      long_description="AbuseHelper is a modular, scalable and robust " + \
          "framework to help you in your abuse handling.",
      author="Clarified Networks",
      author_email="contact@clarifiednetworks.com",
      url="https://bitbucket.org/clarifiednetworks/abusehelper",
      download_url="https://bitbucket.org/clarifiednetworks/abusehelper/downloads",
      scripts=[
        "scripts/abusehelperctl",
        "scripts/roomreader"
        ],
      license="MIT",
      classifiers=[
        "Development Status :: 4 - Beta",
        "Environment :: Other Environment",
        "Topic :: Internet",
        "Topic :: Security",
        "Intended Audience :: Information Technology",
        "Intended Audience :: Telecommunications Industry",
        "License :: Freely Distributable",
        "Programming Language :: Python"
        ],
      )

@@ -899,24 +899,63 @@
 rchivebot%22,%0A
+        %22abusehelper.contrib.tailbot%22,%0A
         %22abu
@@ -1229,16 +1229,74 @@
 idgebot'
+,%0A        'abusehelper.contrib.tailbot': 'contrib/tailbot'
 %0A%09%7D,%0A   

Include tailbot in setup.py