mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #398] [CLOSED] setup: stop on EOF instead of accepting prompt defaults #2621
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#2621
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/398
Author: @Bortlesboat
Created: 10/1/2026
Status: ❌ Closed
Base:
main← Head:fix/setup-eof-confirmation📝 Commits (1)
2cea708setup: stop on EOF instead of accepting prompt defaults📊 Changes
2 files changed (+91 additions, -1 deletions)
View changed files
📝
setup.py(+2 -1)➕
tools/test_setup_prompts.py(+89 -0)📄 Description
Setup now exits with a clear message when a prompt reaches EOF, preventing closed stdin from accepting the
ydefault for Visual Studio Build Tools and CUDA installation. This applies to everyask()prompt; pressing Enter or supplying a valid piped answer still works, and--yesstill accepts each prompt's recommended default.Validated on Windows with Python 3.12.10: the new regression suite produces four failures before the fix, including attempts to reach the Windows and Linux installer commands; all 68 tests below pass afterward. Five child-process checks also pass with closed or piped stdin, and Ruff reports no issues in the changed files.
Hardware discovery and installer execution are mocked; no system packages or models were downloaded or installed. The shard tests emit ResourceWarnings in unchanged
tools/strata_pack.py.Fixes #393.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.