Allow arbitrary Prefix attributes (#4591)

* Allow arbitrary Prefix attributes
* Test attribute type as well

* Flake8 fixes

* Remove __new__ method

* Fewer uses of join_path in the docs
This commit is contained in:
Adam J. Stewart
2017-06-25 00:39:31 -05:00
committed by Todd Gamblin
parent cac4362f64
commit e5ce7b1639
10 changed files with 148 additions and 117 deletions

View File

@@ -57,14 +57,14 @@ def post_install(self):
prefix = self.prefix
# Install man pages
mkdirp(prefix.man1)
mkdirp(prefix.man5)
mkdirp(prefix.man8)
mkdirp(prefix.man.man1)
mkdirp(prefix.man.man5)
mkdirp(prefix.man.man8)
with working_dir('doc'):
install('hg.1', prefix.man1)
install('hgignore.5', prefix.man5)
install('hgrc.5', prefix.man5)
install('hg-ssh.8', prefix.man8)
install('hg.1', prefix.man.man1)
install('hgignore.5', prefix.man.man5)
install('hgrc.5', prefix.man.man5)
install('hg-ssh.8', prefix.man.man8)
# Install completion scripts
contrib = join_path(prefix, 'contrib')