[prev in list] [next in list] [prev in thread] [next in thread]
List: python-distutils-sig
Subject: Re: [Distutils] Including test and docs in distribution
From: Michael Foord <fuzzyman () gmail ! com>
Date: 2010-06-22 12:00:11
Message-ID: AANLkTimzYXUS82WuiYRwMbfgKiU1cbGVcJPrnC-ZFKrh () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
On 22 June 2010 08:39, Floris Bruynooghe <flub@devork.be> wrote:
> On Tue, Jun 22, 2010 at 12:34:46PM +0900, David Cournapeau wrote:
> > On Tue, Jun 22, 2010 at 11:04 AM, Michael Foord <fuzzyman@gmail.com>
> wrote:
> > > Hey all,
> > >
> > > I have a single module I distribute and I would *like* to include the
> tests
> > > (a package) and docs (sphinx generated - single directory) in the
> > > distribution - but not have them "installed" by setup.py.
> >
> > By distribution, you mean the tarball generated by sdist ? In that
> > case, just use the MANIFEST.in, and ensure the doc is build when doing
> > a sdist. You could for example use paver to do that.
>
> MANIFEST.in is indeed the right answer. If it's simply a single
> module package it's easy and low-maintenance to do by hand, e.g.:
>
> include tests/*.py
> recursive-include docs/
>
> See
> http://docs.python.org/distutils/commandref.html#creating-a-source-distribution-the-sdist-commandfor \
> details of MANIFEST.in
>
That's exactly what I need. Thanks very much for your help.
All the best,
Michael Foord
> --
> Debian GNU/Linux -- The Power of Freedom
> www.debian.org | www.gnu.org | www.kernel.org
>
--
http://www.voidspace.org.uk
[Attachment #5 (text/html)]
<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>
_______________________________________________
Distutils-SIG maillist - Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic