Skip to content

Instantly share code, notes, and snippets.

What would you like to do? hooks
from setuptools.command.develop import develop
from setuptools.command.install import install
class PostDevelopCommand(develop):
"""Post-installation for development mode."""
def run(self):
class PostInstallCommand(install):
"""Post-installation for installation mode."""
def run(self):
cmdclass = dict(
develop = PostDevelopCommand,
install = PostInstallCommand,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.