uv icon indicating copy to clipboard operation
uv copied to clipboard

allow `--managed-python` to be used as arg when subprocesses

Open KRRT7 opened this issue 6 months ago • 0 comments

Summary

when subprocessing uv / uvx --managed-python isn't recognized as an argument

Image

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,
        )

KRRT7 avatar May 13 '25 07:05 KRRT7