From 44fb56e80b9c0e41748d42cd90c3ade9589d18e7 Mon Sep 17 00:00:00 2001 From: devds96 <110696365+devds96@users.noreply.github.com> Date: Fri, 27 Oct 2023 00:29:21 +0200 Subject: [PATCH] Replaced subprocess.run with check_call for pip --- src/venvfromfile/builder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/venvfromfile/builder.py b/src/venvfromfile/builder.py index e2f4496..279ab0f 100644 --- a/src/venvfromfile/builder.py +++ b/src/venvfromfile/builder.py @@ -78,7 +78,8 @@ def python_m_pip_install(self, pkg_or_args: _Union[str, _Iterable[str]]): ccargs = (self.env_exe,) + self._PIP_INSTALL + args _logger.debug(f"Performing pip install with command {ccargs!r}.") - _subprocess.run(ccargs, capture_output=True, check=True) + _logger.info("Launching pip to install dependencies.") + _subprocess.check_call(ccargs, text=True) def find_site_dir(self) -> str: """Resolve the site directory of the created virtual