From 134f055035dcc4adf6b6f5e869b26173e72867aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Valtonen=20=C3=96rnhag?= Date: Mon, 17 Aug 2026 18:44:24 +0200 Subject: [PATCH] squash --- .readthedocs.yaml | 44 +++++++++++++++++++++++++++++--------------- 1 file changed, 29 insertions(+), 15 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 2f83472..769f0ef 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -1,23 +1,37 @@ -# Read the Docs configuration file -# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details - -# Required version: 2 -# Set the OS, Python version, and other tools you might need build: - os: ubuntu-24.04 + os: ubuntu-22.04 tools: - python: "3.13" + python: "3.11" + apt_packages: + - libeigen3-dev + - build-essential + - cmake + jobs: + post_checkout: + - git submodule update --init --recursive + pre_install: + - | + set -e + echo "Building PoseLib..." + git clone https://github.com/PoseLib/PoseLib.git /tmp/poselib + cd /tmp/poselib + mkdir -p build + cd build + cmake .. -DCMAKE_INSTALL_PREFIX="$HOME/.local" -DCMAKE_BUILD_TYPE=Release + make -j4 install + echo "PoseLib installed to $HOME/.local" + + # Make CMake find PoseLib later during pip install . + mkdir -p "$HOME/.cmake/packages/PoseLib" + echo "$HOME/.local/lib/cmake/PoseLib" > "$HOME/.cmake/packages/PoseLib/rtd-build" -# Build documentation in the "docs/" directory with Sphinx sphinx: - configuration: docs/conf.py + configuration: docs/source/conf.py -# Optionally, but recommended, -# declare the Python requirements required to build your documentation -# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html python: - install: - - requirements: docs/requirements.txt - + install: + - method: pip + path: . + - requirements: docs/requirements.txt