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.


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


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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.