Skip to content

Commit

Permalink
Rename function for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Mar 10, 2024
1 parent d38b4e1 commit 114e7c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pip_deepfreeze/pip.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _pip_install_cmd_and_env(python: str) -> Tuple[List[str], Dict[str, str]]:
return [*get_pip_command(python), "install"], {}


def _uv_install_cmd_and_env(python: str) -> Tuple[List[str], Dict[str, str]]:
def _uv_pip_install_cmd_and_env(python: str) -> Tuple[List[str], Dict[str, str]]:
return [sys.executable, "-m", "uv", "pip", "install", "--python", python], {}


Expand All @@ -74,7 +74,7 @@ def _install_cmd_and_env(
if get_python_version_info(python) < (3, 7):
log_error("The 'uv' installer requires Python 3.7 or later.")
raise typer.Exit(1)
return _uv_install_cmd_and_env(python)
return _uv_pip_install_cmd_and_env(python)
raise NotImplementedError(f"Installer {installer} is not implemented.")


Expand Down

0 comments on commit 114e7c0

Please sign in to comment.