mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-07-26 16:28:06 +08:00
PR #27324 swapped find_package(PythonInterp) for find_package(Python3), whose macOS defaults (FRAMEWORK=FIRST, STRATEGY=VERSION) override Python3_ROOT_DIR and PATH to resolve the highest-versioned framework Python. CI then matched Homebrew's 3.14 while pip installed kconfiglib into the actions/setup-python 3.10 venv, breaking `make px4_sitl` configure with "No module named menuconfig". Pin Python3_EXECUTABLE to .venv/bin/python when present (macos.sh creates the venv but neither it nor CI exports VIRTUAL_ENV), and set FIND_STRATEGY=LOCATION + FIND_FRAMEWORK=LAST so dev machines and Linux containers without a venv still pick the interpreter that has the project's pip dependencies.
19 KiB
19 KiB