Running a script to build docs from setup.py

Tony Houghton h at realh.co.uk
Fri Jul 10 19:43:54 CEST 2009


On Fri, 10 Jul 2009 11:06:34 +1000
Ben Finney <ben+python at benfinney.id.au> wrote:

> Tony Houghton <h at realh.co.uk> writes:
> 
> > I've looked through the manual but I can't find any hooks in distutils
> > for generating files at install time other than extension modules and
> > .pyc files. Should I just run the script from somewhere in my setup.py
> > before calling distutils' setup function?
> 
> Indirectly related: Ian Bicking's article on using Python's ‘setup.py’
> as a ‘Makefile’ replacement:
> 
>     <URL:http://blog.ianbicking.org/pythons-makefile.html>

Thanks, but I don't think that adds much to the distutils manual.

> If one is writing a ‘setup.py’ anyway, I think it makes sense to use
> that as the build program for the whole project if possible. Good
> hunting!

Yes. Really I only want to write a setup.py because it makes it easier
to make a debian package, but the more of the installation that's done
by setup.py the better I suppose, then other people might find it
useful.

-- 
TH * http://www.realh.co.uk




More information about the Python-list mailing list