diff options
author | Dmitry Shachnev <mitya57@gmail.com> | 2020-12-08 15:46:19 +0300 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2020-12-09 11:22:03 +0000 |
commit | 3f00c2adad2e38b0a1f28ec53484ff24ca9a016b (patch) | |
tree | 94ed0db54583e9acb8352be75865dc56f9239e37 /build_scripts | |
parent | 50e059098260caaef33a1e2b19e9d76a85d2a32c (diff) |
setup.py: Pass --reuse-build only to commands that use DistUtilsCommandMixin
Other commands, such as configure, do not support it.
Amends 0a00958b083008dea340ef78b0f235ca49b7d22c.
Change-Id: I5dbcea6aea60e027a8ff15d10351edbeaefdf338
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit b12c71b9c1fd9723f30329dc8c16a63d4e5eb80b)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'build_scripts')
-rw-r--r-- | build_scripts/setup_runner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build_scripts/setup_runner.py b/build_scripts/setup_runner.py index 6eb0d8a26..3c7116b82 100644 --- a/build_scripts/setup_runner.py +++ b/build_scripts/setup_runner.py @@ -93,7 +93,7 @@ class SetupRunner(object): command = self.sub_argv[1] # Add --reuse-build option if requested and not already present. - if (reuse_build and command != 'clean' + if (reuse_build and command in ('bdist_wheel', 'build', 'build_rst_docs', 'install') and not self.cmd_line_argument_is_in_args("reuse-build", self.sub_argv)): setup_cmd.append(self.construct_cmd_line_argument("reuse-build")) self.invocations_list.append(setup_cmd) |