Skip to content

fix(install): quote PYTHON_PATH and UV_CMD for paths with spaces on macOS (#10009)#13001

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-bd16abe6
Apr 20, 2026
Merged

fix(install): quote PYTHON_PATH and UV_CMD for paths with spaces on macOS (#10009)#13001
teknium1 merged 1 commit into
mainfrom
hermes/hermes-bd16abe6

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Summary

install.sh no longer crashes on macOS when uv's Python path contains spaces (~/Library/Application Support/uv/...).

Cherry-picked from PR #10019 by @PStarH onto current main.

Changes

  • scripts/install.sh: Quote all $PYTHON_PATH and $UV_CMD expansions in check_python()
  • scripts/release.py: AUTHOR_MAP entry for @PStarH

Validation

Before After
Path with spaces Library/Application: No such file or directory Correctly quoted, works

bash -n scripts/install.sh passes.

Closes #10009
Supersedes #10010, #10019, #10054, #10118

…acOS (#10009)

Cherry-picked from PR #10019 by @PStarH.

On macOS, uv stores Python in ~/Library/Application Support/uv/...
which contains a space. Unquoted $PYTHON_PATH and $UV_CMD caused
word-splitting under set -e, silently aborting install.sh.

Quotes all variable expansions in check_python():
- "$PYTHON_PATH" in command invocations
- "$UV_CMD" in uv calls
- Outer quotes on $(...) assignments

Closes #10009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: install.sh fails on macOS due to unquoted spaces in Python path (uv)

2 participants