comparison Sphinx/source/plugins/python.rst @ 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 933e28b6a64d
children f22b3743fd3f
comparison
equal deleted inserted replaced
500:4481882d9c83 501:98592b9e7ad5
135 :ref:`configuration option <configuration>` of Orthanc. 135 :ref:`configuration option <configuration>` of Orthanc.
136 136
137 **Warning:** The shared library is only compatible with the Python 137 **Warning:** The shared library is only compatible with the Python
138 interpreter whose version corresponds to the value of the 138 interpreter whose version corresponds to the value of the
139 ``PYTHON_VERSION`` argument that was given to CMake. 139 ``PYTHON_VERSION`` argument that was given to CMake.
140 140
141 **Note for OS X:** As indicated by `Stephen Douglas Scotti
142 <https://groups.google.com/g/orthanc-users/c/RnmZKFv8FaY/m/HhvOD2A2CAAJ>`__,
143 here is a sample invocation of CMake to force the version of Python to
144 be used on OS X::
145
146 $ cmake .. -DPYTHON_VERSION=3.8 -DSTATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Release \
147 -DPYTHON_LIBRARY=/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/libpython3.8.dylib \
148 -DPYTHON_INCLUDE_DIR=/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/include/python3.8/
149
141 150
142 Microsoft Windows 151 Microsoft Windows
143 ................. 152 .................
144 153
145 Pre-compiled binaries for Microsoft Windows `are also available 154 Pre-compiled binaries for Microsoft Windows `are also available