[PR #1605] [CLOSED] setup: skip a cmake/ninja on PATH that does not run, for the one next to this Python #3560

Closed
opened 2026-11-07 14:42:20 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1605
Author: @Destrayon
Created: 10/8/2026
Status: ❌ Closed

Base: main ← Head: pr/setup-broken-path-tool


📝 Commits (1)

  • 7afa9ff setup: skip a cmake/ninja on PATH that does not run, for the one next to this Python

📊 Changes

1 file changed (+7 additions, -2 deletions)

View changed files

📝 setup.py (+7 -2)

📄 Description

Title

Issue: none filed.

Summary

A cmake or ninja on PATH that does not run no longer fails every build; setup falls back to the one it installed
next to its Python.

What changed

setup.py find_tool took the first cmake/ninja on PATH without running it. A pip-installed ninja.exe whose
Python had been removed was still on PATH; it is a launcher that fails at once, so every build failed, although
setup had just installed a working ninja in .venv. find_tool now runs the PATH tool with --version and, when
that fails, falls through to the one next to this Python.

Extra Notes

Tested: on Windows with the broken launcher on PATH, the build used .venv's ninja and finished;
tools/test_setup_*.py all pass.

🤖 Generated with Claude Code


🔄 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/1605 **Author:** [@Destrayon](https://github.com/Destrayon) **Created:** 10/8/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pr/setup-broken-path-tool` --- ### 📝 Commits (1) - [`7afa9ff`](https://github.com/Niko1221/Strata/commit/7afa9ffd738fa0a1947699caec8e5ee54c648885) setup: skip a cmake/ninja on PATH that does not run, for the one next to this Python ### 📊 Changes **1 file changed** (+7 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `setup.py` (+7 -2) </details> ### 📄 Description ## Title Issue: none filed. ## Summary A cmake or ninja on `PATH` that does not run no longer fails every build; setup falls back to the one it installed next to its Python. ## What changed `setup.py` `find_tool` took the first `cmake`/`ninja` on `PATH` without running it. A pip-installed `ninja.exe` whose Python had been removed was still on `PATH`; it is a launcher that fails at once, so every build failed, although setup had just installed a working ninja in `.venv`. `find_tool` now runs the `PATH` tool with `--version` and, when that fails, falls through to the one next to this Python. ## Extra Notes Tested: on Windows with the broken launcher on `PATH`, the build used `.venv`'s ninja and finished; `tools/test_setup_*.py` all pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 14:42:20 +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#3560
No description provided.