changeset 501:98592b9e7ad5

force version of python on os x
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 05 Sep 2020 11:20:25 +0200
parents 4481882d9c83
children 141c2c8e94be
files Sphinx/source/plugins/python.rst
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
+<https://groups.google.com/g/orthanc-users/c/RnmZKFv8FaY/m/HhvOD2A2CAAJ>`__,
+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
 .................