Remove dependence of docs on the Python module (#1293)
Revert a change introduced in #1282 that required the python module for arbor to build the documentation. This breaks the readthedocs build, where arbor is not available. * Remove arbor dependence from `doc/conf.py`, reverting to the original "out of core" approach * Fix other recently introduced issues that lead to CMake errors when configuring the documentation when the Python target is not configured. * The CMake variable `PYTHON_EXECUTABLE` wasn't set, but was required to make calls to the Python interpreter. * Instead of relying on pybind11 to find Python, explicitly detect it using `find_package(Python3 ...)` * Make Python3 a hard requirement when building the Python wrapper * And a soft requirement otherwise, that will fail only when the docs are built.
Showing
- .github/workflows/basic.yml 1 addition, 1 deletion.github/workflows/basic.yml
- CMakeLists.txt 16 additions, 0 deletionsCMakeLists.txt
- doc/conf.py 6 additions, 11 deletionsdoc/conf.py
- doc/install/build_install.rst 7 additions, 15 deletionsdoc/install/build_install.rst
- doc/install/python.rst 4 additions, 2 deletionsdoc/install/python.rst
- doc/scripts/inputs.py 165 additions, 0 deletionsdoc/scripts/inputs.py
- python/CMakeLists.txt 1 addition, 0 deletionspython/CMakeLists.txt
- setup.py 1 addition, 1 deletionsetup.py
Please register or sign in to comment