uv
0fb52912 - Add support for Windows legacy scripts via uv run (#11888)

Commit
360 days ago
Add support for Windows legacy scripts via uv run (#11888) ## Summary Closes https://github.com/astral-sh/uv/issues/9151 This adds support for running .ps1, .cmd, .bat legacy scripts typically provided by setuptools [legacy script files](https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/#scripts). Note, .bat and .cmd scripts were somewhat supported previously by [Command](https://doc.rust-lang.org/std/process/index.html#batch-file-special-handling) when the extension was explicit but documentation says such behavior should not be relied upon. In addition, when no extension is provided and a legacy script exists, it will try to infer the appropriate extension on Windows and use the right runtime with preference for .ps1. Only powershell.exe and cmd.exe are supported right now. ## Test Plan Added tests. Tested with nuitka locally via uv run. Note uvx support will be added in a follow up.
Author
Parents
Loading