From d1306c1efa629842eda2666307375d4d3951c6dc Mon Sep 17 00:00:00 2001 From: Cristian Maureira-Fredes Date: Thu, 15 Oct 2020 15:06:21 +0200 Subject: build_rst_docs: add DistUtilsCommandMixin to the command Task-number: PYSIDE-807 Change-Id: Ib2369887bafc61971ffa500427ec85c1cd73c2b2 Reviewed-by: Friedemann Kleint --- build_scripts/main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'build_scripts') diff --git a/build_scripts/main.py b/build_scripts/main.py index ab0a6c083..8fd6fd189 100644 --- a/build_scripts/main.py +++ b/build_scripts/main.py @@ -1162,11 +1162,12 @@ class PysideBuild(_build, DistUtilsCommandMixin): "updated rpath (OS/X) in {}.".format(srcpath)) -class PysideRstDocs(Command): +class PysideRstDocs(Command, DistUtilsCommandMixin): description = "Build .rst documentation only" - user_options = [] + user_options = DistUtilsCommandMixin.mixin_user_options def initialize_options(self): + DistUtilsCommandMixin.__init__(self) log.info("-- This build process will not include the API documentation." "API documentation requires a full build of pyside/shiboken.") self.skip = False @@ -1235,7 +1236,7 @@ class PysideRstDocs(Command): log.info("-- The documentation was built. Check html/pyside2/index.html") def finalize_options(self): - pass + DistUtilsCommandMixin.mixin_finalize_options(self) cmd_class_dict = { -- cgit v1.2.3