diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-10-18 15:52:15 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-10-18 15:57:34 +0200 |
| commit | 8a102f62b1557f2227c84668120b5c0cd508f301 (patch) | |
| tree | 77e1b030671a7741a58c61b158468c9244867706 /build_scripts/main.py | |
| parent | e49f545dc6f44f9297998379543a7b706953f58a (diff) | |
build scripts: Fix target build_rst_docs
Amends 2afcf8e7545c681e412e5b6d04ab8867e5edd5c7.
Task-number: PYSIDE-2080
Change-Id: I30a1a795b9735d89bbfa647cff4c9f8f06516a2b
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'build_scripts/main.py')
| -rw-r--r-- | build_scripts/main.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/build_scripts/main.py b/build_scripts/main.py index f6fc73a24..8c24ceb75 100644 --- a/build_scripts/main.py +++ b/build_scripts/main.py @@ -1213,7 +1213,7 @@ class PysideRstDocs(Command, CommandMixin): log.info(f"-- Documentation directory: 'html/{PYSIDE}/'") else: raise SetupError("Sphinx not found - aborting") - self.html_dir = "html" + self.html_dir = Path("html") # creating directories html/pyside6/shiboken6 try: @@ -1237,9 +1237,9 @@ class PysideRstDocs(Command, CommandMixin): def run(self): if not self.skip: cmake_cmd = [ - OPTION["CMAKE"], - "-S", self.doc_dir, - "-B", self.out_dir, + str(OPTION["CMAKE"]), + "-S", str(self.doc_dir), + "-B", str(self.out_dir), "-DDOC_OUTPUT_FORMAT=html", "-DFULLDOCSBUILD=0", ] @@ -1253,8 +1253,9 @@ class PysideRstDocs(Command, CommandMixin): elif self.name == SHIBOKEN: self.sphinx_src = self.out_dir - sphinx_cmd = ["sphinx-build", "-b", "html", "-j", "auto", "-c", self.sphinx_src, - self.doc_dir, self.out_dir] + sphinx_cmd = ["sphinx-build", "-b", "html", "-j", "auto", "-c", + str(self.sphinx_src), str(self.doc_dir), + str(self.out_dir)] if run_process(sphinx_cmd) != 0: raise SetupError(f"Error running CMake for {self.doc_dir}") # Last message |
