Setup parameters

The previous chapters have actually already shown us a couple of examples, but let's reiterate and review what the most important parts actually do. The core function you will be using in this entire chapter is setuptools.setup.

Note

For the most simple packages, the distutils package bundled with Python will be sufficient as well, but I recommend setuptools regardless. The setuptools package has many great features that distutils lacks and nearly all Python environments will have setuptools available anyhow.

Before we continue, make sure you have the latest version of both pip and setuptools:

pip install -U pip setuptools

Note

The setuptools and distutils packages have changed significantly over the last few years and the documentation/examples ...

Get Python: Journey from Novice to Expert 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.