Yurttas/PL/SL/python/docs/core-python-programming/doc/16/dist/source-dist.html

From ZCubes Wiki
Revision as of 18:58, 7 November 2013 by MassBot1 (talk | contribs) (Created page with "<div class="navigation"> {| width="100%" cellspacing="2" align="center" | yurttas/PL/SL/python/docs/core-python-programming/doc/16/dist/manifest.html|[[Image:yurttas_PL...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


5 Creating a Source Distribution

As shown in section 2.1, you use the sdist command to create a source distribution. In the simplest case,

python setup.py sdist

(assuming you haven't specified any 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

You can specify as many formats as you like using the --formats option, for example:

python setup.py sdist --formats=gztar,zip

to create a gzipped tarball and a zip file. The available formats are:

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:

(1)
default on Windows
(2)
default on Unix

Subsections


See About this document... for information on suggesting changes.