<br><br><div class="gmail_quote">On 22 June 2010 08:39, Floris Bruynooghe <span dir="ltr"><<a href="mailto:flub@devork.be">flub@devork.be</a>></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>
> On Tue, Jun 22, 2010 at 11:04 AM, Michael Foord <<a href="mailto:fuzzyman@gmail.com">fuzzyman@gmail.com</a>> wrote:<br>
> > Hey all,<br>
> ><br>
> > I have a single module I distribute and I would *like* to include the tests<br>
> > (a package) and docs (sphinx generated - single directory) in the<br>
> > distribution - but not have them "installed" by setup.py.<br>
><br>
> By distribution, you mean the tarball generated by sdist ? In that<br>
> case, just use the MANIFEST.in, and ensure the doc is build when doing<br>
> a sdist. You could for example use paver to do that.<br>
<br>
</div></div>MANIFEST.in is indeed the right answer. If it's simply a single<br>
module package it'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'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>