2222from os import name as os_name
2323from os .path import dirname , join
2424from subprocess import PIPE , CompletedProcess , run # nosec:B404
25- from sys import argv , executable
25+ from sys import argv , executable , stderr
2626from typing import Any
2727from venv import EnvBuilder
2828
3535
3636def pip_run (* args : str , ** kwargs : Any ) -> CompletedProcess :
3737 # pip is not API, but a CLI -- call it like that!
38- call = (
39- executable , '-m' , 'pip' ,
40- '--python' , env_dir ,
41- * args
42- )
43- print ('+ ' , * call )
38+ call = (executable , '-m' , 'pip' ,
39+ '--python' , env_dir ,
40+ * args )
41+ print ('+ ' , * call , file = stderr )
4442 res = run (call , ** kwargs , cwd = this_dir , shell = False ) # nosec:B603
4543 if res .returncode != 0 :
4644 raise RuntimeError ('process failed' )
@@ -66,7 +64,7 @@ def main() -> None:
6664 '--no-deps' , # the clib dep cannot be installed consistently...
6765 # https://packaging.python.org/en/latest/specifications/name-normalization/#name-normalization
6866 'ruamel-YAML[jinja2]' , # actually "ruamel.yaml", normalizes to "ruamel-yaml"
69- 'ruamel-Yaml.Jinja2' , # actually "ruamel.yaml.jinja2", normalizes to "ruamel-yaml-jinja2"
67+ 'ruamel-Yaml.Jinja2' , # actually "ruamel.yaml.jinja2", normalizes to "ruamel-yaml-jinja2"
7068 )
7169
7270
0 commit comments