# HG changeset patch # User Sebastien Jodogne # Date 1599297625 -7200 # Node ID 98592b9e7ad5ee7bebe803730516353e4048d6dc # Parent 4481882d9c8321024275a7fd274bf611edec54ba force version of python on os x diff -r 4481882d9c83 -r 98592b9e7ad5 Sphinx/source/plugins/python.rst --- a/Sphinx/source/plugins/python.rst Tue Sep 01 18:22:01 2020 +0200 +++ b/Sphinx/source/plugins/python.rst Sat Sep 05 11:20:25 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 .................