(args: string[])
| 444 | } |
| 445 | |
| 446 | export function filterUnsafeUvPipArgs(args: string[]): string[] { |
| 447 | // `--no-warn-script-location` is not supported/safe with `uv pip install`, |
| 448 | // so strip it out when using uv while still allowing it for plain pip. |
| 449 | return args.filter(arg => arg !== '--no-warn-script-location'); |
| 450 | } |
| 451 | |
| 452 | export function getProtectedUvEnv( |
| 453 | baseEnv: NodeJS.ProcessEnv = process.env, |