Files
PX4-Autopilot/.github
Nuno Marques 7be68c5ebc ci(macos): point cmake at the venv created by setup script
The MacOS build job calls actions/setup-python before running
Tools/setup/macos.sh, which creates a venv at .venv and installs all
of PX4's Python deps (kconfiglib, empy, etc.) there. setup-python
exports Python3_ROOT_DIR / Python_ROOT_DIR / pythonLocation pointing
at the hostedtoolcache interpreter, and find_package(Python3) honours
those hints over PATH search even with FIND_STRATEGY=LOCATION. Adding
.venv/bin to GITHUB_PATH was therefore not enough -- cmake kept
selecting /Users/runner/hostedtoolcache/Python/3.10.11/arm64/bin/python3.10,
which has no kconfiglib, and configure failed at cmake/kconfig.cmake's
import probe.

Override Python3_ROOT_DIR / Python_ROOT_DIR / pythonLocation to the
.venv and export VIRTUAL_ENV so Python3_FIND_VIRTUALENV=FIRST kicks in,
making the venv interpreter the one cmake picks up.

Signed-off-by: Nuno Marques <n.marques21@hotmail.com>
2026-05-07 16:40:13 -07:00
..
2026-04-28 10:29:49 -06:00