Commit 03059db
authored
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#8079
Closes #394.
Closes astral-sh/uv#9348.1 parent 4a8625d commit 03059db
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
858 | 858 | | |
859 | 859 | | |
860 | 860 | | |
861 | | - | |
| 861 | + | |
| 862 | + | |
862 | 863 | | |
863 | 864 | | |
864 | 865 | | |
| |||
0 commit comments