build_rocky: rely on uv for providing Python

This commit is contained in:
Andrej730
2026-08-04 12:07:55 +05:00
parent cf7a484ce1
commit 108acf1cd0
3 changed files with 6 additions and 7 deletions
+2 -4
View File
@@ -23,16 +23,14 @@ jobs:
# --enablerepo=crb: libstdc++-static (libsupc++.a, needed by the # --enablerepo=crb: libstdc++-static (libsupc++.a, needed by the
# bundled FLTK link) lives in Rocky's CodeReady Builder repo, which # bundled FLTK link) lives in Rocky's CodeReady Builder repo, which
# is disabled by default. # is disabled by default.
dnf install -y --enablerepo=crb gcc gcc-c++ git autoconf automake bison make zip cmake python3 python3-pip \ dnf install -y --enablerepo=crb gcc gcc-c++ git autoconf automake bison make zip cmake \
bzip2 patch mesa-libGL-devel libffi-devel fontconfig-devel \ bzip2 patch mesa-libGL-devel libffi-devel fontconfig-devel \
sqlite-devel bzip2-devel zlib-devel openssl-devel xz-devel \ sqlite-devel bzip2-devel zlib-devel openssl-devel xz-devel \
readline-devel ncurses-devel libffi-devel libuuid-devel git-lfs \ readline-devel ncurses-devel libffi-devel libuuid-devel git-lfs \
findutils xz byacc patchelf libxkbcommon-devel \ findutils xz byacc patchelf libxkbcommon-devel \
python3.11 python3.11-pip \
dbus-devel \ dbus-devel \
libXext-devel libXinerama-devel libXcursor-devel libXrender-devel \ libXext-devel libXinerama-devel libXcursor-devel libXrender-devel \
libXfixes-devel libXft-devel pango-devel cairo-devel libstdc++-static libXfixes-devel libXft-devel pango-devel cairo-devel libstdc++-static
python3 -m pip install aqtinstall
git config --global --add safe.directory '*' git config --global --add safe.directory '*'
- name: Install Rust - name: Install Rust
@@ -118,7 +116,7 @@ jobs:
# connector.json into dist/autodesk/. Same on-disk shape as the # connector.json into dist/autodesk/. Same on-disk shape as the
# old PyInstaller flow so the symlink + zip steps below # old PyInstaller flow so the symlink + zip steps below
# continue to work unchanged. # continue to work unchanged.
python3.11 src/bonsaiviewer-autodesk/packaging/build.py uv run src/bonsaiviewer-autodesk/packaging/build.py
autodesk_connector_dir="$PWD/src/bonsaiviewer-autodesk/dist/autodesk" autodesk_connector_dir="$PWD/src/bonsaiviewer-autodesk/dist/autodesk"
test -d "$autodesk_connector_dir" test -d "$autodesk_connector_dir"
+2 -3
View File
@@ -35,7 +35,7 @@ jobs:
# --enablerepo=crb: libstdc++-static (libsupc++.a, needed by the # --enablerepo=crb: libstdc++-static (libsupc++.a, needed by the
# bundled FLTK link) lives in Rocky's CodeReady Builder repo, which # bundled FLTK link) lives in Rocky's CodeReady Builder repo, which
# is disabled by default. # is disabled by default.
dnf install -y --enablerepo=crb gcc gcc-c++ git autoconf automake bison make zip cmake python3 python3-pip \ dnf install -y --enablerepo=crb gcc gcc-c++ git autoconf automake bison make zip cmake \
bzip2 patch mesa-libGL-devel libffi-devel fontconfig-devel \ bzip2 patch mesa-libGL-devel libffi-devel fontconfig-devel \
sqlite-devel bzip2-devel zlib-devel openssl-devel xz-devel \ sqlite-devel bzip2-devel zlib-devel openssl-devel xz-devel \
readline-devel ncurses-devel libffi-devel libuuid-devel git-lfs \ readline-devel ncurses-devel libffi-devel libuuid-devel git-lfs \
@@ -43,7 +43,6 @@ jobs:
dbus-devel \ dbus-devel \
libXext-devel libXinerama-devel libXcursor-devel libXrender-devel \ libXext-devel libXinerama-devel libXcursor-devel libXrender-devel \
libXfixes-devel libXft-devel pango-devel cairo-devel libstdc++-static libXfixes-devel libXft-devel pango-devel cairo-devel libstdc++-static
python3 -m pip install aqtinstall
git config --global --add safe.directory '*' git config --global --add safe.directory '*'
- name: Install Rust - name: Install Rust
@@ -129,7 +128,7 @@ jobs:
# connector.json into dist/autodesk/. Same on-disk shape as the # connector.json into dist/autodesk/. Same on-disk shape as the
# old PyInstaller flow so the symlink + zip steps below # old PyInstaller flow so the symlink + zip steps below
# continue to work unchanged. # continue to work unchanged.
python3 src/bonsaiviewer-autodesk/packaging/build.py uv run src/bonsaiviewer-autodesk/packaging/build.py
autodesk_connector_dir="$PWD/src/bonsaiviewer-autodesk/dist/autodesk" autodesk_connector_dir="$PWD/src/bonsaiviewer-autodesk/dist/autodesk"
test -d "$autodesk_connector_dir" test -d "$autodesk_connector_dir"
@@ -1,3 +1,5 @@
# /// script
# ///
"""Build the Autodesk connector bundle for the current OS. """Build the Autodesk connector bundle for the current OS.
Runs `cargo build --release` and packages the resulting binary + Runs `cargo build --release` and packages the resulting binary +