[PATCH RFC STABLE?] setup: include manpages in bdist_* targets

Matt Mackall mpm at selenic.com
Sun Feb 20 11:33:35 CST 2011


On Fri, 2011-02-18 at 10:30 -0600, Kevin Bullock wrote:
> # HG changeset patch
> # User Kevin Bullock <kbullock at ringworld.org>
> # Date 1298046139 21600
> # Branch stable
> # Node ID 57ebc0117809fc1aecb9e6aa1b97fbe1a30574ec
> # Parent  6169493ac3f9392ffb1adbfed6e8e5546bf1e3ed
> setup: include manpages in bdist_* targets

This is issue2594 and probably others:

http://mercurial.selenic.com/bts/issue2594

Giorgios' solution looks quite a bit more involved than yours and it's
not clear to me what the right way to do this is (or if we should even
be tackling such a non-portable thing in setup.py).

> Adds the manpages to the data_files option so that they get included
> into bdist_* packages.
> 
> diff --git a/setup.py b/setup.py
> --- a/setup.py
> +++ b/setup.py
> @@ -358,7 +358,8 @@
>              f = os.path.join(curdir, f)
>              packagedata['mercurial'].append(f)
>  
> -datafiles = []
> +datafiles = [('man/man1', ['doc/hg.1']),
> +             ('man/man5', ['doc/hgignore.5', 'doc/hgrc.5'])]
>  setupversion = version
>  extra = {}
>  
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel


-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list