Prepare changes to docker images for python packages
[alexxy/gromacs.git] / admin / gitlab-ci / documentation.gitlab-ci.yml
index 36ce9b6ea3cd337bfdc36eafde71a3baa965a8e6..25a53dbff9013a6b42470e3fb307b17ddaf6e5c0 100644 (file)
       mkdir $BUILD_DIR ;
       fi
     - cd $BUILD_DIR
+    # Running CMake with the venv activated should not be strictly necessary,
+    # but helps to find and cache self-consistent Python and Sphinx details
+    # without additional hinting. Once CMakeCache.txt exists, the later stages
+    # should work fine without reactivating the venv.
+    - source /root/venv/py3.7/bin/activate
     - cmake ..
       -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
       $CMAKE_COMPILER_SCRIPT