[PR #2517] [CLOSED] setup: prefer the cmake/ninja in venv over one on regular PATH #4092

Closed
opened 2026-11-07 15:33:09 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2517
Author: @zacaj
Created: 10/15/2026
Status: ❌ Closed

Base: main ← Head: setup-prefer-venv-cmake


📝 Commits (1)

  • a519aaa setup: prefer the cmake/ninja installed next to this Python over one on PATH

📊 Changes

1 file changed (+11 additions, -9 deletions)

View changed files

📝 setup.py (+11 -9)

📄 Description

Summary

find_tool used the first cmake on PATH that ran, so if the user already had cmake installed, it'd use that even though setup pip-installs its own into .venv, which can cause problems if it's not a compatible version.

What changed

Check for a binary in the local venv Scripts/ folder before checking trying which


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/2517 **Author:** [@zacaj](https://github.com/zacaj) **Created:** 10/15/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `setup-prefer-venv-cmake` --- ### 📝 Commits (1) - [`a519aaa`](https://github.com/Niko1221/Strata/commit/a519aaa4eb29da7c8ca3e3ff2cf90a7e238eb463) setup: prefer the cmake/ninja installed next to this Python over one on PATH ### 📊 Changes **1 file changed** (+11 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `setup.py` (+11 -9) </details> ### 📄 Description ## Summary find_tool used the first cmake on PATH that ran, so if the user already had cmake installed, it'd use that even though setup pip-installs its own into .venv, which can cause problems if it's not a compatible version. ## What changed Check for a binary in the local venv Scripts/ folder before checking trying `which` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:33:09 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4092
No description provided.