changeset 503:141c2c8e94be

merge
author Alain Mazy <alain@mazy.be>
date Mon, 07 Sep 2020 14:21:01 +0200
parents 4e426dec4fee (current diff) 98592b9e7ad5 (diff)
children 2845ac3adad2 cf489ab9ca48
files
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
+<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
 .................