Installing *everything* from source
Greg Ward
greg-hg at gerg.ca
Fri Jul 3 21:46:43 UTC 2009
I'm installing 1.3 from source. (First time! To date, I've built my
own RPM, used Debian pacakages, and run out of a source tree... but
never actually done "make install" for real.) Annoyingly, "make
install" does not install templates despite the fact that setup.py
seems to do the right thing. Specifically:
$ make install PREFIX=/tmp/mercurial-1.3
[...]
$ find /tmp/mercurial-1.3/share
/tmp/mercurial-1.3/share
/tmp/mercurial-1.3/share/man
/tmp/mercurial-1.3/share/man/man1
/tmp/mercurial-1.3/share/man/man1/hg.1
/tmp/mercurial-1.3/share/man/man5
/tmp/mercurial-1.3/share/man/man5/hgignore.5
/tmp/mercurial-1.3/share/man/man5/hgrc.5
Note the distinct absence of templates and.po files, despite the fact
that setup.py explicitly puts them in the data_files list passed to
setup(). Odd. Odder still, if I peel back a layer or two and ask
distutils to just bloody install the data files, it works:
$ python setup.py install_data --install-dir /tmp/mercurial-1.3/share
[...]
$ ls -l /tmp/mercurial-1.3/share/mercurial
drwxrwxr-x 2 gward gward 4096 2009-07-03 17:43 i18n
drwxrwxr-x 11 gward gward 4096 2009-07-03 17:43 templates
And yes, those two directories are full of the appropriate stuff.
Has anyone dug into this to figure out what's going wrong? Is this
distutils or something funny in Hg's setup.py?
Greg
More information about the Mercurial
mailing list