Skip to content

Commit

Permalink
Replaced subprocess.run with check_call for pip
Browse files Browse the repository at this point in the history
  • Loading branch information
devds96 committed Oct 26, 2023
1 parent 32a635f commit 44fb56e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/venvfromfile/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 44fb56e

Please sign in to comment.