FindPython: enhance Development artifacts lookup in virtual environment

To enable to locate development artifacts, in the context of virtual
environment, without requiring Interpreter component, rely on the
configuration file pyvenv.cfg.

Fixes: #26505
This commit is contained in:
Marc Chevrier
2024-12-10 18:31:27 +01:00
parent 54e998629d
commit 11aff3c490
4 changed files with 141 additions and 62 deletions

View File

@@ -321,9 +321,9 @@ Hints
.. note::
If the component ``Development`` is requested, it is **strongly**
recommended to also include the component ``Interpreter`` to get expected
result.
If the component ``Development`` is requested (or one of its
sub-components) and is not found or the wrong artifacts are returned,
including also the component ``Interpreter`` may be helpful.
``Python2_FIND_IMPLEMENTATIONS``
.. versionadded:: 3.18