You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use relocatable shebang with space-in-path robustness (#395)
## Summary
The current shebang seems to fail when the path itself contains spaces. For example:
```
❯ "/Users/crmarsh/Library/Application Support/uv/python/cpython-3.13.0-macos-aarch64-none/bin/pydoc3"
/Users/crmarsh/Library/Application Support/uv/python/cpython-3.13.0-macos-aarch64-none/bin/pydoc3: line 2: /Users/crmarsh/Library
Support/uv/python/cpython-3.13.0-macos-aarch64-none/bin/python3.13: No such file or directory
/Users/crmarsh/Library/Application Support/uv/python/cpython-3.13.0-macos-aarch64-none/bin/pydoc3: line 2: exec: /Users/crmarsh/Library
Support/uv/python/cpython-3.13.0-macos-aarch64-none/bin/python3.13: cannot execute: No such file or directory
```
This PR replaces it with the shebang that we use in uv for relocatable environments, which is outlined in the following series of PRs and issues:
- https://github.com/astral-sh/uv/pull/5515/files#r1694358328
- astral-sh/uv#5640
- astral-sh/uv#8079Closes#394.
Closesastral-sh/uv#9348.
0 commit comments