mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3822] [Other] setup/update prefers outdated system CMake over virtualenv CMake #1617
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1617
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sato33 on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3822
Problem
On Ubuntu 22.04,
./update.shselects/usr/bin/cmake(3.22.1), even when a newer CMake is installed in Strata's own.venv.This causes the engine rebuild to fail because
CMakeLists.txtrequires CMake 3.24 or newer.Actual output
Environment: Ubuntu 22.04, RTX 4090, CUDA 13.4, existing locally compiled engine.
Root cause
setup.shcorrectly executes.venv/bin/python setup.py.However,
setup.py'sfind_tool()callsshutil.which(name)before looking besidesys.executable. It only checks whethercmake --versionexits successfully, not whether the CMake version meets the minimum requirement.Consequently, an outdated but working system CMake takes precedence over the virtualenv's CMake.
Expected behavior
Workaround
Related but distinct: #3403.
@github-actions[bot] commented on GitHub (Oct 23, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Oct 23, 2026):
Thanks, this follows the format now.
@Niko1221 commented on GitHub (Oct 26, 2026):
Thanks. Fixed in 0.2.5: the build tools next to the virtualenv's Python are used first and a cmake older than 3.24 is skipped (
5bfce4bea). Closing as done.