Distribution Package
Pronunciationdis-trih-BYOO-shun PAK-ij
Definition
A distribution package is the built file you publish and install, usually a wheel (.whl, ready to install) or an sdist (a source archive).
Where you hear it
When publishing a Python library, in packaging guides, and in CI jobs that build and upload releases.
Examples
Build the distribution, then upload the wheel and the sdist.
Install the wheel in a clean environment to test it.
We uploaded the wheel and the source archive to the package index.
Common mistake
Mixing it up with an import package. The distribution is what you install; the import package is what you import in code.
Don't confuse with
A package in code, which is just a folder of modules. A distribution is the shippable archive of one or more of them.
Say it at work
- In a meeting or chat
CI builds the wheel on every tag.
- In an email or ticket
The sdist is missing a file; check the manifest.
Keep exploring
More in DevOps & Cloud