commit:     6c1bfe7aad832a794c84792aa7bdfc1cb7767773
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 20 01:37:47 2017 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon Nov 20 01:43:23 2017 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=6c1bfe7a

setup.py: add htmldir opt to install_*doc* (bug 638046)

The htmldir option is needed so that python_install_all
can override the htmldir (it needs to be overridden in
order to install docs in /usr/share/doc/${PF} which may
include an ebuild revision like -r1).

Bug: https://bugs.gentoo.org/638046

 setup.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/setup.py b/setup.py
index cc7bbcf4f..d25a8a4c9 100755
--- a/setup.py
+++ b/setup.py
@@ -173,7 +173,9 @@ class epydoc(Command):
 class install_docbook(install_data):
        """ install_data for docbook docs """
 
-       user_options = install_data.user_options
+       user_options = install_data.user_options + [
+               ('htmldir=', None, "HTML documentation install directory"),
+       ]
 
        def initialize_options(self):
                install_data.initialize_options(self)
@@ -195,7 +197,9 @@ class install_docbook(install_data):
 class install_epydoc(install_data):
        """ install_data for epydoc docs """
 
-       user_options = install_data.user_options
+       user_options = install_data.user_options + [
+               ('htmldir=', None, "HTML documentation install directory"),
+       ]
 
        def initialize_options(self):
                install_data.initialize_options(self)

Reply via email to