<!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN">
<link rel=
"STYLESHEET" href=
"dist.css" type='text/css'
/>
<link rel=
"SHORTCUT ICON" href=
"../icons/pyfav.png" type=
"image/png" />
<link rel='start' href='../index.html' title='Python Documentation Index'
/>
<link rel=
"first" href=
"dist.html" title='Distributing Python Modules'
/>
<link rel='index' href='genindex.html' title='Index'
/>
<link rel='last' href='about.html' title='About this document...'
/>
<link rel='help' href='about.html' title='About this document...'
/>
<link rel=
"prev" href=
"install-scripts-cmd.html" />
<link rel=
"parent" href=
"reference.html" />
<link rel=
"next" href=
"api-reference.html" />
<meta name='aesop' content='information'
/>
<title>9.2 Creating a source distribution: the sdist command
</title>
<div id='top-navigation-panel' xml:id='top-navigation-panel'
>
<table align=
"center" width=
"100%" cellpadding=
"0" cellspacing=
"2">
<td class='online-navigation'
><a rel=
"prev" title=
"9.1 Installing modules: the"
href=
"install-scripts-cmd.html"><img src='../icons/previous.png'
border='
0' height='
32' alt='Previous Page' width='
32'
/></A></td>
<td class='online-navigation'
><a rel=
"parent" title=
"9. Command Reference"
href=
"reference.html"><img src='../icons/up.png'
border='
0' height='
32' alt='Up One Level' width='
32'
/></A></td>
<td class='online-navigation'
><a rel=
"next" title=
"10. API Reference"
href=
"api-reference.html"><img src='../icons/next.png'
border='
0' height='
32' alt='Next Page' width='
32'
/></A></td>
<td align=
"center" width=
"100%">Distributing Python Modules
</td>
<td class='online-navigation'
><img src='../icons/blank.png'
border='
0' height='
32' alt='' width='
32'
/></td>
<td class='online-navigation'
><a href=
"modindex.html" title=
"Module Index"><img src='../icons/modules.png'
border='
0' height='
32' alt='Module Index' width='
32'
/></a></td>
<td class='online-navigation'
><a rel=
"index" title=
"Index"
href=
"genindex.html"><img src='../icons/index.png'
border='
0' height='
32' alt='Index' width='
32'
/></A></td>
<div class='online-navigation'
>
<b class=
"navlabel">Previous:
</b>
<a class=
"sectref" rel=
"prev" href=
"install-scripts-cmd.html">9.1 Installing modules: the
</A>
<b class=
"navlabel">Up:
</b>
<a class=
"sectref" rel=
"parent" href=
"reference.html">9. Command Reference
</A>
<b class=
"navlabel">Next:
</b>
<a class=
"sectref" rel=
"next" href=
"api-reference.html">10. API Reference
</A>
<!--End of Navigation Panel-->
<H1><A NAME=
"SECTION009200000000000000000"></A>
9.2 Creating a source distribution: the
<code class=
"du-command">sdist
</code> command
<b class=
"du-xxx">fragment moved down from above: needs context!
</b>
The manifest template commands are:
<div class=
"center"><table class=
"realtable">
<th class=
"left" >Command
</th>
<tr><td class=
"left" valign=
"baseline"><code>include
<var>pat1
</var> <var>pat2
</var> ...
</code></td>
<td>include all files matching any of the listed patterns
</td></tr>
<tr><td class=
"left" valign=
"baseline"><code>exclude
<var>pat1
</var> <var>pat2
</var> ...
</code></td>
<td>exclude all files matching any of the listed patterns
</td></tr>
<tr><td class=
"left" valign=
"baseline"><code>recursive-include
<var>dir
</var> <var>pat1
</var> <var>pat2
</var> ...
</code></td>
<td>include all files under
<var>dir
</var> matching any of the listed patterns
</td></tr>
<tr><td class=
"left" valign=
"baseline"><code>recursive-exclude
<var>dir
</var> <var>pat1
</var> <var>pat2
</var> ...
</code></td>
<td>exclude all files under
<var>dir
</var> matching any of the listed patterns
</td></tr>
<tr><td class=
"left" valign=
"baseline"><code>global-include
<var>pat1
</var> <var>pat2
</var> ...
</code></td>
<td>include all files anywhere in the source tree matching
any of the listed patterns
</td></tr>
<tr><td class=
"left" valign=
"baseline"><code>global-exclude
<var>pat1
</var> <var>pat2
</var> ...
</code></td>
<td>exclude all files anywhere in the source tree matching
any of the listed patterns
</td></tr>
<tr><td class=
"left" valign=
"baseline"><code>prune
<var>dir
</var></code></td>
<td>exclude all files under
<var>dir
</var></td></tr>
<tr><td class=
"left" valign=
"baseline"><code>graft
<var>dir
</var></code></td>
<td>include all files under
<var>dir
</var></td></tr></tbody>
The patterns here are
<span class=
"Unix">Unix
</span>-style ``glob'' patterns:
<code>*
</code> matches any
sequence of regular filename characters,
<code>?
</code> matches any single
regular filename character, and
<code>[
<var>range
</var>]
</code> matches any of the
characters in
<var>range
</var> (e.g.,
<code>a-z
</code>,
<code>a-zA-Z
</code>,
<code>a-f0-
9_.
</code>). The definition of ``regular filename character'' is
platform-specific: on
<span class=
"Unix">Unix
</span> it is anything except slash; on Windows
anything except backslash or colon; on Mac OS
9 anything except colon.
<b class=
"du-xxx">Windows support not there yet
</b>
<div class='online-navigation'
>
<table align=
"center" width=
"100%" cellpadding=
"0" cellspacing=
"2">
<td class='online-navigation'
><a rel=
"prev" title=
"9.1 Installing modules: the"
href=
"install-scripts-cmd.html"><img src='../icons/previous.png'
border='
0' height='
32' alt='Previous Page' width='
32'
/></A></td>
<td class='online-navigation'
><a rel=
"parent" title=
"9. Command Reference"
href=
"reference.html"><img src='../icons/up.png'
border='
0' height='
32' alt='Up One Level' width='
32'
/></A></td>
<td class='online-navigation'
><a rel=
"next" title=
"10. API Reference"
href=
"api-reference.html"><img src='../icons/next.png'
border='
0' height='
32' alt='Next Page' width='
32'
/></A></td>
<td align=
"center" width=
"100%">Distributing Python Modules
</td>
<td class='online-navigation'
><img src='../icons/blank.png'
border='
0' height='
32' alt='' width='
32'
/></td>
<td class='online-navigation'
><a href=
"modindex.html" title=
"Module Index"><img src='../icons/modules.png'
border='
0' height='
32' alt='Module Index' width='
32'
/></a></td>
<td class='online-navigation'
><a rel=
"index" title=
"Index"
href=
"genindex.html"><img src='../icons/index.png'
border='
0' height='
32' alt='Index' width='
32'
/></A></td>
<div class='online-navigation'
>
<b class=
"navlabel">Previous:
</b>
<a class=
"sectref" rel=
"prev" href=
"install-scripts-cmd.html">9.1 Installing modules: the
</A>
<b class=
"navlabel">Up:
</b>
<a class=
"sectref" rel=
"parent" href=
"reference.html">9. Command Reference
</A>
<b class=
"navlabel">Next:
</b>
<a class=
"sectref" rel=
"next" href=
"api-reference.html">10. API Reference
</A>
<span class=
"release-info">Release
2.4.2, documentation updated on
28 September
2005.
</span>
<!--End of Navigation Panel-->
See
<i><a href=
"about.html">About this document...
</a></i> for information on suggesting changes.