1
# 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?

1 Answer 1

1

Use wheel. A wheel is a great standard format for passing around Python packages, and it can contain C code compiled for various architectures. PyPI supports uploading wheels for your project, and pip will download them when available.

Very useful docs can be found here: https://packaging.python.org/tutorials/distributing-packages/#packaging-your-project

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.