From b85ab635e769e6b7ff563cc70c8cfa80bcfa0f3d Mon Sep 17 00:00:00 2001 From: user202729 <25191436+user202729@users.noreply.github.com> Date: Fri, 19 Dec 2025 21:21:35 +0700 Subject: [PATCH] Explain how to disable generating targets for docbuilding --- src/doc/en/installation/source.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/doc/en/installation/source.rst b/src/doc/en/installation/source.rst index e049edd0bde..d785ed9abef 100644 --- a/src/doc/en/installation/source.rst +++ b/src/doc/en/installation/source.rst @@ -208,6 +208,15 @@ Remarks run in parallel based on the number of CPU available. This can be adjusted by passing ``--config-settings=compile-args=-jN`` to ``pip install``. + If you don't need to build the documentation, pass + ``--config-settings=setup-args=-Dbuild-docs=false`` to ``pip install`` + to speed up the target generation step. + + The parameter ``setup-args`` etc. are documented in + ``_. + ``setup-args`` are passed to ``meson``, effect ``compile-args`` + are passed to ``ninja``. + ``--verbose`` can be passed to ``pip install``, then the meson commands internally used by pip will be printed out.