Summary

In this chapter, we introduced the tools used for packaging and distributing applications. We first looked at a simpler setup.py file. You looked into the attributes of the function setup and how these arguments link up to the final installer. Next we added-NumPy related code and added some exception handling code. Finally, we built the installer and learnt how to upload it on the Cheese Shop (the PyPI website). In the next chapter, you will be looking at ways to further speed up your Python code by converting parts of it into Cython.

Get NumPy Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.