Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
setup.py hooks
from setuptools.command.develop import develop
from setuptools.command.install import install
class PostDevelopCommand(develop):
"""Post-installation for development mode."""
def run(self):
fetch_yarn()
develop.run(self)
class PostInstallCommand(install):
"""Post-installation for installation mode."""
def run(self):
fetch_yarn()
install.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.