This document is for an old version of Python that is no longer supported. You should upgrade and read the Python documentation for the current stable release. 4. Creating a Source Distribution¶ As shown in section A Simple Example, you use the sdist command to create a source distribution. In the simplest case, (assuming you haven’t specified any sdist options in the setup script or config file),