[PATCH 3 of 3 RFC] setup: install & build documentation using docutils

Dan Villiom Podlaski Christiansen danchr at gmail.com
Fri Nov 20 07:51:35 CST 2009


On 20 Nov 2009, at 14:03, Benoit Boissinot wrote:

> On Tue, Nov 17, 2009 at 10:36:44PM +0100, Dan Villiom Podlaski Christiansen wrote:
>> diff --git a/doc/__init__.py b/doc/__init__.py
>> new file mode 100644
> 
> Why is this needed? to import gendoc?

Well, sort of. At first, I used the ‘imp’ module to import the file directly. However, having the file there — for everyone to see — seems both cleaner and more maintainable. And less of a hack too :-)

When absent in the installed docutils, I also import the manpage writer from ‘doc’. We might want to consider moving either ‘gendoc’ or both of them into the core; for extensions.

> And the Makefile inside doc/ should probably be removed too.

Even if it's in my private queue, I'd rather not remove it just yet; first, I'd like some confirmation that distutils is able to reproduce all the functionality of the Make builds.

--

Dan Villiom Podlaski Christiansen
danchr at gmail.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1943 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20091120/5616c575/attachment.bin>


More information about the Mercurial-devel mailing list