from setuptools import setup

import apitestcase

setup(
    name="apitestcase",
    description="An integration test suite for HTTP APIs",
    url="https://github.com/bramwelt/apitestcase",
    version=".".join(apitestcase.__version__),
    author="Trevor Bramwell",
    author_email="trevor@bramwell.net",
    packages=['apitestcase'],
    license="MIT",
    install_requires=['requests'],
    long_description=open("README.rst").read(),
    test_suite="test",
)

@@ -1,8 +1,29 @@
+from os import path%0A%0A
 from set
@@ -47,27 +47,409 @@
 tup%0A
-%0Aimport apitestcase
+from distutils.command.clean import clean%0Afrom distutils.dir_util import remove_tree%0A%0Aimport apitestcase%0A%0Aclass CustomCleanCommand(clean):%0A    %22%22%22%0A    Customized clean method that removes 'dist' and 'build' directories.%0A    %22%22%22%0A%0A    def run(self):%0A        clean.run(self)%0A        if path.exists('dist'):%0A            remove_tree('dist')%0A        if path.exists('build'):%0A            remove_tree('build')
 %0A%0Ase
@@ -859,10 +859,54 @@
 %22test%22,%0A
+    cmdclass=%7B'clean': CustomCleanCommand%7D,%0A
 )%0A

Add a simple extension to setup.py