# HG changeset patch # User Alain Mazy # Date 1599481261 -7200 # Node ID 141c2c8e94be98e97852853fddc3430d2535b5e4 # Parent 4e426dec4fee11f2267a676a0a1f293a50fc0879# Parent 98592b9e7ad5ee7bebe803730516353e4048d6dc merge diff -r 4e426dec4fee -r 141c2c8e94be Sphinx/source/plugins/python.rst --- a/Sphinx/source/plugins/python.rst Mon Sep 07 14:20:50 2020 +0200 +++ b/Sphinx/source/plugins/python.rst Mon Sep 07 14:21:01 2020 +0200 @@ -137,7 +137,16 @@ **Warning:** The shared library is only compatible with the Python interpreter whose version corresponds to the value of the ``PYTHON_VERSION`` argument that was given to CMake. - + +**Note for OS X:** As indicated by `Stephen Douglas Scotti +`__, +here is a sample invocation of CMake to force the version of Python to +be used on OS X:: + + $ cmake .. -DPYTHON_VERSION=3.8 -DSTATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Release \ + -DPYTHON_LIBRARY=/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/libpython3.8.dylib \ + -DPYTHON_INCLUDE_DIR=/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/include/python3.8/ + Microsoft Windows .................