Skip to content

Commit 0727db0

Browse files
liammcalpineduckietownTuxliri
authored andcommitted
fix: rename install_pip to install_pip_tool
1 parent 6745d6c commit 0727db0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/dt_shell/environments.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from .constants import SHELL_LIB_DIR, SHELL_REQUIREMENTS_LIST, DTShellConstants
1515
from .database.utils import InstalledDependenciesDatabase
1616
from .logging import dts_print
17-
from .utils import install_pip, pip_install, replace_spaces, print_debug_info, pretty_json
17+
from .utils import install_pip_tool, pip_install, replace_spaces, print_debug_info, pretty_json
1818

1919

2020
class ShellCommandEnvironmentAbs(metaclass=ABCMeta):
@@ -110,7 +110,7 @@ def execute(self, shell, _: List[str]):
110110
with_pip=False,
111111
prompt="dts"
112112
)
113-
install_pip(interpreter_fpath)
113+
install_pip_tool(interpreter_fpath)
114114

115115
# install dependencies
116116
cache: InstalledDependenciesDatabase = InstalledDependenciesDatabase.load(shell.profile)

lib/dt_shell/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ class DebugInfo:
236236
name2versions: Dict[str, Union[str, Dict[str, str]]] = {}
237237

238238

239-
def install_pip(interpreter: str):
239+
def install_pip_tool(interpreter: str):
240240
get_pip_fpath: str = os.path.join(SHELL_LIB_DIR, "assets", "get-pip.py")
241241
if not os.path.exists(get_pip_fpath):
242242
msg = f"Required file for pip installation not found: {get_pip_fpath}"
@@ -265,7 +265,7 @@ def pip_install(interpreter: str, requirements: str):
265265
if attempt == MAX_PIP_INSTALL_ATTEMPTS - 1 or "No module named pip" not in error:
266266
msg: str = "An error occurred while installing python dependencies"
267267
raise ShellInitException(msg, stdout=e.stdout, stderr=e.stderr)
268-
install_pip(interpreter)
268+
install_pip_tool(interpreter)
269269

270270

271271
def indent_block(s: str, indent_len: int = 4) -> str:

0 commit comments

Comments
 (0)