Show More
@@ -53,6 +53,21 b' STAGING_EXCLUDES_WINDOWS = [' | |||||
53 | ] |
|
53 | ] | |
54 |
|
54 | |||
55 |
|
55 | |||
|
56 | def build_docs_html(source_dir: pathlib.Path): | |||
|
57 | """Ensures HTML documentation is built. | |||
|
58 | ||||
|
59 | This will fail if docutils isn't available. | |||
|
60 | ||||
|
61 | (The HTML docs aren't built as part of `pip install` so we need to build them | |||
|
62 | out of band.) | |||
|
63 | """ | |||
|
64 | subprocess.run( | |||
|
65 | [sys.executable, str(source_dir / "setup.py"), "build_doc", "--html"], | |||
|
66 | cwd=str(source_dir), | |||
|
67 | check=True, | |||
|
68 | ) | |||
|
69 | ||||
|
70 | ||||
56 | def run_pyoxidizer( |
|
71 | def run_pyoxidizer( | |
57 | source_dir: pathlib.Path, |
|
72 | source_dir: pathlib.Path, | |
58 | build_dir: pathlib.Path, |
|
73 | build_dir: pathlib.Path, | |
@@ -113,14 +128,7 b' def run_pyoxidizer(' | |||||
113 | # is taught to use the importlib APIs for reading resources. |
|
128 | # is taught to use the importlib APIs for reading resources. | |
114 | process_install_rules(STAGING_RULES_APP, build_dir, out_dir) |
|
129 | process_install_rules(STAGING_RULES_APP, build_dir, out_dir) | |
115 |
|
130 | |||
116 | # We also need to run setup.py build_doc to produce html files, |
|
131 | build_docs_html(source_dir) | |
117 | # as they aren't built as part of ``pip install``. |
|
|||
118 | # This will fail if docutils isn't installed. |
|
|||
119 | subprocess.run( |
|
|||
120 | [sys.executable, str(source_dir / "setup.py"), "build_doc", "--html"], |
|
|||
121 | cwd=str(source_dir), |
|
|||
122 | check=True, |
|
|||
123 | ) |
|
|||
124 |
|
132 | |||
125 | if "windows" in target_triple: |
|
133 | if "windows" in target_triple: | |
126 | process_install_rules(STAGING_RULES_WINDOWS, source_dir, out_dir) |
|
134 | process_install_rules(STAGING_RULES_WINDOWS, source_dir, out_dir) |
General Comments 0
You need to be logged in to leave comments.
Login now