Signed-off-by: Cleber Rosa <[email protected]>
---
setup.py | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index c046730..6924206 100644
--- a/setup.py
+++ b/setup.py
@@ -14,6 +14,9 @@ import installation_support.setup
from distutils.core import setup
+from sphinx.setup_command import BuildDoc
+cmdclass = {'build_doc': BuildDoc}
+
try:
import autotest.common as common
except ImportError:
@@ -125,7 +128,15 @@ def run():
package_data=get_package_data(),
packages= get_packages(),
scripts=get_scripts(),
- data_files=get_data_files())
+ data_files=get_data_files(),
+ cmdclass=cmdclass,
+ command_options={
+ 'build_doc': {
+ 'source_dir': ('setup.py', 'documentation/source')
+ }
+ }
+ )
+
if __name__ == '__main__':
--
1.7.11.7
_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel