Skip to content

Commit 028812a

Browse files
docs: add warning about FindPython's Development component when libraries don't exist (e.g. on manylinux) (#2689)
* Add waring about FindPython's Development component when libraries don't exist (e.g. on manylinux) * Minor wording update (thanks, @henryiii!)
1 parent d57c1fa commit 028812a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/compiling.rst

+8
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,14 @@ setting ``Python_ROOT_DIR`` may be the most common one (though with
433433
virtualenv/venv support, and Conda support, this tends to find the correct
434434
Python version more often than the old system did).
435435

436+
.. warning::
437+
438+
When the Python libraries (i.e. ``libpythonXX.a`` and ``libpythonXX.so``
439+
on Unix) are not available, as is the case on a manylinux image, the
440+
``Development`` component will not be resolved by ``FindPython``. When not
441+
using the embedding functionality, CMake 3.18+ allows you to specify
442+
``Development.Module`` instead of ``Development`` to resolve this issue.
443+
436444
.. versionadded:: 2.6
437445

438446
Advanced: interface library targets

0 commit comments

Comments
 (0)