16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-09-01 08:09:19 +02:00

appveyor: use uv for embeddable python 3.14 on linux

This commit is contained in:
maj00r
2026-08-15 20:50:03 +02:00
parent a2a635867c
commit 027c627f13

View File

@@ -70,11 +70,14 @@ for:
git submodule update --init --recursive git submodule update --init --recursive
sudo apt-get update -y sudo apt-get update -y
sudo apt-get install -y libglfw3-dev libpng-dev libopenal-dev libluajit-5.1-dev libserialport-dev libsndfile1-dev sudo apt-get install -y libglfw3-dev libpng-dev libopenal-dev libluajit-5.1-dev libserialport-dev libsndfile1-dev
# the image's Python 3.14 lacks embeddable headers/libpython; fetch a
# standalone CPython (with Development.Embed) via uv
curl -LsSf https://astral.sh/uv/install.sh | sh
"$HOME/.local/bin/uv" python install 3.14
build_script: build_script:
- sh: | - sh: |
# Python 3.14 is preinstalled on the image (pyenv); point CMake at it PYTHON=$("$HOME/.local/bin/uv" python find 3.14)
PYTHON=$(pyenv which python3.14 2>/dev/null || command -v python3.14)
mkdir -p build mkdir -p build
cd build cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_ZMQ=OFF -DWITH_OPENVR=OFF -DWITH_BETTER_RENDERER=OFF -DUSE_LTO=ON -DPython3_EXECUTABLE="$PYTHON" cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_ZMQ=OFF -DWITH_OPENVR=OFF -DWITH_BETTER_RENDERER=OFF -DUSE_LTO=ON -DPython3_EXECUTABLE="$PYTHON"