Many times throughout this book, you have installed Python packages using pip. You probably know that pip downloads these packages from PyPI and installs them to your system, Python virtual environment, or user environment. What you may not know is that the tool used to create and install these packages is called setuptools, and it's readily available to us if we want to make our own packages for PyPI or for personal use.
Although setuptools is the officially recommended tool for creating Python packages, it is not part of the standard library. However, it is included in the default distributions for most operating systems (OSes) if you elect to include pip during installation. If for some reason you don't have setuptools installed, consult the documentation at https://setuptools.readthedocs.io/en/latest/ to see how you can install it on...