aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Marvin Schmidt <marv@exherbo.org> 2018-09-17 19:39:26 +0200
committerAvatar Marvin Schmidt <marv@exherbo.org> 2019-10-22 20:10:53 +0200
commit382e5e7735ed86b91e57a5a2427277142b1814ec (patch)
tree5a8aaaeac6a2dbd2e3758ca9c89987ead193bc64
parentb5eedf61b341dcf7681c8ec6bd02ac5e9493238a (diff)
downloadpaludis-382e5e7735ed86b91e57a5a2427277142b1814ec.tar.gz
paludis-382e5e7735ed86b91e57a5a2427277142b1814ec.tar.xz
doc/python: Run sphinx with the same python version we build against
The shebang of the sphinx-build binary does not necessarily point to the python version we use to build our python bindings. On Exherbo Sphinx provides multiple library version but only a single executable which gets a shebang pointing to the last selected ABI
-rw-r--r--doc/api/python/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/python/CMakeLists.txt b/doc/api/python/CMakeLists.txt
index 55f40d738..7652c1c0c 100644
--- a/doc/api/python/CMakeLists.txt
+++ b/doc/api/python/CMakeLists.txt
@@ -18,7 +18,7 @@ if(ENABLE_PYTHON_DOCS)
add_custom_command(COMMAND
env PYTHONPATH="${CMAKE_BINARY_DIR}/python"
- "${SPHINX_EXECUTABLE}"
+ "${PYTHON_EXECUTABLE}" "${SPHINX_EXECUTABLE}"
-c "${CMAKE_CURRENT_BINARY_DIR}"
-b html
-d "${CMAKE_CURRENT_BINARY_DIR}/doctrees"