[Distutils] Including test and docs in distribution
fuzzyman at gmail.com
Tue Jun 22 14:00:11 CEST 2010
On 22 June 2010 08:39, Floris Bruynooghe <flub at 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 at gmail.com>
> > > Hey all,
> > >
> > > I have a single module I distribute and I would *like* to include the
> > > (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/
> 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,
> Debian GNU/Linux -- The Power of Freedom
> www.debian.org | www.gnu.org | www.kernel.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Distutils-SIG