Creating and using source distributions

With our configuration files all set, we can create a source distribution. This kind of distribution bundles all the relevant files for building our package from source into a tar.gz archive.

To create the source distribution, run setup.py with the sdist option in the project root directory:

python3 setup.py sdist

The following two new directories will appear under the project root:

  • ABQ_Data_Entry.egg-info: This directory contains the metadata files generated by setuptools. If you explore this directory, you'll find that all the information we passed to setup() is here in some form or another.
  • dist: This directory contains any files generated for distribution; in this case, there is just a single ...

Get Python GUI Programming with Tkinter 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.