from distutils.core import setup

setup(
    name="idiokit",
    version="1.0",
    author="Clarified Networks",
    author_email="contact@clarifiednetworks.com",
    url="https://bitbucket.org/clarifiednetworks/idiokit",
    packages=["idiokit", "idiokit.xmpp"]
    )

@@ -1,8 +1,18 @@
+import os%0A
 from dis
@@ -40,15 +40,510 @@
 tup%0A
-%0Asetup(
+from distutils.dir_util import remove_tree%0Afrom distutils.util import convert_path%0Afrom distutils.command.install import install as _install%0A%0Aclass install(_install):%0A    def run(self):%0A        # Installed historical files like idiokit/xmpp.py may%0A        # mess up importing current subpackages such as%0A        # idiokit/xmpp.%0A        path = os.path.join(self.install_lib, %22idiokit%22)%0A        remove_tree(convert_path(path))%0A%0A        return _install.run(self)%0A%0Asetup(%0A    cmdclass=%7B%22install%22: install%7D,
 %0A   
@@ -576,9 +576,9 @@
 on=%22
-1
+2
 .0%22,

Bump the version number to 2.0 and try to clean up the installation directory before installing. Old files such as idiokit/xmpp.py seem to mess up importing e.g. idiokit/xmpp directory.