<br><br><div class="gmail_quote">On 22 June 2010 08:39, Floris Bruynooghe <span dir="ltr">&lt;<a href="mailto:flub@devork.be">flub@devork.be</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On Tue, Jun 22, 2010 at 12:34:46PM +0900, David Cournapeau wrote:<br>
&gt; On Tue, Jun 22, 2010 at 11:04 AM, Michael Foord &lt;<a href="mailto:fuzzyman@gmail.com">fuzzyman@gmail.com</a>&gt; wrote:<br>
&gt; &gt; Hey all,<br>
&gt; &gt;<br>
&gt; &gt; I have a single module I distribute and I would *like* to include the tests<br>
&gt; &gt; (a package) and docs (sphinx generated - single directory) in the<br>
&gt; &gt; distribution  - but not have them &quot;installed&quot; by setup.py.<br>
&gt;<br>
&gt; By distribution, you mean the tarball generated by sdist ? In that<br>
&gt; case, just use the MANIFEST.in, and ensure the doc is build when doing<br>
&gt; a sdist. You could for example use paver to do that.<br>
<br>
</div></div>MANIFEST.in is indeed the right answer.  If it&#39;s simply a single<br>
module package it&#39;s easy and low-maintenance to do by hand, e.g.:<br>
<br>
include tests/*.py<br>
recursive-include docs/<br>
<br>
See <a href="http://docs.python.org/distutils/commandref.html#creating-a-source-distribution-the-sdist-command" target="_blank">http://docs.python.org/distutils/commandref.html#creating-a-source-distribution-the-sdist-command</a> for details of MANIFEST.in<br>

<font color="#888888"><br></font></blockquote><div><br>That&#39;s exactly what I need. Thanks very much for your help.<br><br>All the best,<br><br>Michael Foord<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<font color="#888888">
--<br>
Debian GNU/Linux -- The Power of Freedom<br>
<a href="http://www.debian.org" target="_blank">www.debian.org</a> | <a href="http://www.gnu.org" target="_blank">www.gnu.org</a> | <a href="http://www.kernel.org" target="_blank">www.kernel.org</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.voidspace.org.uk">http://www.voidspace.org.uk</a><br><br><br>