As shown in section 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 format is gzip'ed
tar file (.tar.gz) on Unix, and ZIP file on Windows. ** no Mac
OS support here **
You can specify as many formats as you like using the --formats option, for example:
python setup.py sdist --formats=gztar,zip
Format | Description | Notes |
---|---|---|
zip |
zip file (.zip) | (1),(3) |
gztar |
gzip'ed tar file (.tar.gz) | (2),(4) |
bztar |
bzip2'ed tar file (.tar.gz) | (4) |
ztar |
compressed tar file (.tar.Z) | (4) |
tar |
tar file (.tar) | (4) |
Notes: