uv
uv copied to clipboard
allow `--managed-python` to be used as arg when subprocesses
Summary
when subprocessing uv / uvx --managed-python isn't recognized as an argument
Example
used like so:
cmd = [
"uvx",
"--managed-python",
"--refresh",
"--isolated",
"--with-requirements",
deps.temp_requirements().as_posix(),
"nuitka",
"--remove-output",
"--onefile",
"--run",
self.app.script,
]
self.executer = await asyncio.create_subprocess_shell(
" ".join(cmd),
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.STDOUT,
)