# setup.py from setuptools import setup from setuptools.command.install import install from subprocess import check_call class CustomInstall(install): def run(self): check_call("./build.sh") install.run(self) setup( name='customlib', packages=['customlib'], version='0.0.1', ... cmdclass={'install': CustomInstall} ) build.sh contains a make & make install step which takes more than 10 minutes to finish.
Is there a PyPi way to "package" the output of build.sh to speed up the pip install process?