As shown in section 2.1, you use the
sdist
command to create a source distribution. In the
simplest case,
python setup.py sdist
sdist
options in the setup
script or config file), sdist
creates the archive of the
default format for the current platform. The default formats are:
Platform | Default archive format for source distributions |
---|---|
Unix |
gzipped tar file (.tar.gz) |
Windows |
zip file |
python setup.py sdist --formats=gztar,zip
Format | Description | Notes |
---|---|---|
zip |
zip file (.zip) | (1) |
gztar |
gzipped tar file (.tar.gz) | (2) |
ztar |
compressed tar file (.tar.Z) | |
tar |
tar file (.tar) |
Notes: