Up to this point in the book, we have primarily been concerned with writing a working piece of code. Our projects have all been single scripts with, at most, a handful of supporting data files. Producing a finished project doesn't end with writing the code, however; we also need our projects to be easily distributable so that we can share them with (or sell them to) other people.
In this chapter, we're going to look at ways to prepare our code for sharing and distribution.
We'll cover these topics:
- Structuring a project
- Distributing with setuptools
- Compiling with PyInstaller