[PATCH 0 of 3] install documentation & data using setup.py

Dan Villiom Podlaski Christiansen danchr at gmail.com
Sat Aug 22 12:52:17 UTC 2009


Hi,

Attached below are three patches; primarily against 'setup.py'.

The first patch changes the way the current data files are installed,
as overriding the 'install_data' option means that other data files
can't be installed into the provided data directory.

The second patch installs a few data files, including the Zsh and Bash
completion scripts. It's mainly provided as an example.

The third patch allows both manual pages and HTML documentation to be
built and installed with distutils. I didn't touch the Makefiles, but
it might be worthwhile to remove either some or all of 'doc/Makefile',
if this patch is accepted.

I haven't run any tests against these, as I couldn't find any tests
that seemed relevant. For what it's worth, I also had a fourth patch,
which bundled 'msgfmt.py' and used it to build the documentation. I
removed it, as Martin Geisler said on IRC that such a change had been
discussed earlier and rejected.


2009-08-19  Dan Villiom Podlaski Christiansen  <danchr at gmail.com>

	* setup.py:
	setup: don't override install_data for package data.

	Currently, the 'install_data' option is overridden and set from the
	'install_lib' option. This prevents installing anything other than
	package data; use a separate 'package_data_files' field on the
	distribution instead.
	[1c05b1bbf758] [install-dirs.diff]

2009-08-19  Dan Villiom Podlaski Christiansen  <danchr at gmail.com>

	* contrib/bash_completion, contrib/completion/bash/hg,
	contrib/completion/zsh/_hg, contrib/zsh_completion, setup.py:
	setup: install some useful data files.
	[a9d1eb0e1444] [install-data.diff]

2009-08-19  Dan Villiom Podlaski Christiansen  <danchr at gmail.com>

	* setup.py:
	setup: install & build documentation using docutils.
	[d63240fa0d51] [install-documentation.diff]



More information about the Mercurial-devel mailing list