aboutsummaryrefslogtreecommitdiffstats
path: root/host/docs/pythonapi.dox
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-04-11 09:10:53 -0700
committerMartin Braun <martin.braun@ettus.com>2019-05-24 14:17:13 -0700
commitf83faf28b3424ba60c3bdc40d408011c9c619c8a (patch)
tree9f3750f097feabe8c9493b8b5b9cc99bab3e7bd2 /host/docs/pythonapi.dox
parent6563c53743617215a18542db7d7050a04a0d409d (diff)
downloaduhd-f83faf28b3424ba60c3bdc40d408011c9c619c8a.tar.gz
uhd-f83faf28b3424ba60c3bdc40d408011c9c619c8a.tar.bz2
uhd-f83faf28b3424ba60c3bdc40d408011c9c619c8a.zip
cmake: Remove ENABLE_PYTHON3 flag and simplify Python detection
- Makes use of more modern find_package(Python2/3) if available - Moves almost all Python-related code to UHDPython.cmake - ENABLE_PYTHON3 is no longer necessary
Diffstat (limited to 'host/docs/pythonapi.dox')
-rw-r--r--host/docs/pythonapi.dox8
1 files changed, 4 insertions, 4 deletions
diff --git a/host/docs/pythonapi.dox b/host/docs/pythonapi.dox
index 3f73c3a74..c8f504049 100644
--- a/host/docs/pythonapi.dox
+++ b/host/docs/pythonapi.dox
@@ -14,16 +14,16 @@ provide that functionality. On Windows, these headers always get installed when
using the binary installers provided on https://www.python.org/downloads/windows/.
If CMake can't find the Python headers or library, specify
-the `PYTHON_INCLUDE_DIRS` and/or `PYTHON_LIBRARY` CMake variables manually.
+the `PYTHON_INCLUDE_DIR` and/or `PYTHON_LIBRARY` CMake variables manually.
\subsection python_install_2v3 Python 2 vs. 3
The Python API supports both Python 2 and 3, but if you have both versions
installed, CMake might require some hints which version is the desired one.
-To force Python 3, UHD has a CMake variable `ENABLE_PYTHON3`. If you set it,
-e.g., by running `cmake -DENABLE_PYTHON3=ON`, it will force the usage of
-Python 3.
+To force a particular version, it helps to set `-DPYTHON_EXECUTABLE=/usr/bin/python3`,
+or whatever interpreter you are expecting. The variables PYTHON_LIBRARY and
+PYTHON_INCLUDE_DIR may also need to be set.
\subsection python_install_windows Installing on Windows