¿Cómo puedo agregar scripts posteriores a la instalación a easy_install / setuptools / distutils?

Me gustaría poder agregar un gancho a mi setup.py que se ejecutará después de la instalación (ya sea cuando sea fácil de instalar o cuando instale python setup.py).

En mi proyectoPySmell, Tengo algunos archivos de soporte para Vim y Emacs. Cuando un usuario instala PySmell de la manera habitual, estos archivos se copian en el huevo real, y el usuario tiene que extraerlos y colocarlos en sus directorios .vim o .emacs. Lo que quiero es preguntarle al usuario, después de la instalación, dónde desea que se copien estos archivos, o incluso solo un mensaje que imprima la ubicación de los archivos y qué debe hacer con ellos.

¿Cuál es la mejor manera de hacer esto?

Gracias

Mi setup.py se ve así:

#!/usr/bin/env python
# -*- coding: UTF-8 -*-
from setuptools import setup

version = __import__('pysmell.pysmell').pysmell.__version__

setup(
    name='pysmell',
    version = version,
    description = 'An autocompletion library for Python',
    author = 'Orestis Markou',
    author_email = '[email protected]',
    packages = ['pysmell'],
    entry_points = {
        'console_scripts': [ 'pysmell = pysmell.pysmell:main' ]
    },
    data_files = [
        ('vim', ['pysmell.vim']),
        ('emacs', ['pysmell.el']),
    ],
    include_package_data = True,
    keywords = 'vim autocomplete',
    url = 'http://code.google.com/p/pysmell',
    long_description =
"""\
PySmell is a python IDE completion helper. 

It tries to statically analyze Python source code, without executing it,
and generates information about a project's structure that IDE tools can
use.

The first target is Vim, because that's what I'm using and because its
completion mechanism is very straightforward, but it's not limited to it.
""",
    classifiers = [
        'Development Status :: 5 - Production/Stable',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Software Development',
        'Topic :: Utilities',
        'Topic :: Text Editors',
    ]


)

EDITAR:

Aquí hay un trozo que demuestra elpython setup.py install:

from setuptools.command.install import install as _install

class install(_install):
    def run(self):
        _install.run(self)
        print post_install_message

setup(
    cmdclass={'install': install},
    ...

Aún no hay suerte con la ruta easy_install.

Respuestas a la pregunta(2)

Su respuesta a la pregunta