Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def _install_requirements_txt(self, local_path, python_executable):
"""Install requirements.txt file"""
# Validate path to prevent command injection
validated_path = self._validate_path(local_path)
cmd = [python_executable, "-m", "pip", "install", "-r", validated_path, "-U"]
cmd = [python_executable, "-m", "pip", "install", "-r", validated_path]
logger.info("Running command: '%s' in the dir: '%s' ", " ".join(cmd), os.getcwd())
_run_shell_cmd(cmd)
logger.info("Command %s ran successfully", " ".join(cmd))
Expand All @@ -320,7 +320,7 @@ def _install_req_txt_in_conda_env(self, env_name, local_path):
self._validate_env_name(env_name)
validated_path = self._validate_path(local_path)

cmd = [self._get_conda_exe(), "run", "-n", env_name, "pip", "install", "-r", validated_path, "-U"]
cmd = [self._get_conda_exe(), "run", "-n", env_name, "pip", "install", "-r", validated_path]
logger.info("Activating conda env and installing requirements: %s", " ".join(cmd))
_run_shell_cmd(cmd)
logger.info("Requirements installed successfully in conda env %s", env_name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def _install_requirements_txt(self, local_path, python_executable):
"""Install requirements.txt file"""
# Validate path to prevent command injection
validated_path = self._validate_path(local_path)
cmd = [python_executable, "-m", "pip", "install", "-r", validated_path, "-U"]
cmd = [python_executable, "-m", "pip", "install", "-r", validated_path]
logger.info("Running command: '%s' in the dir: '%s' ", " ".join(cmd), os.getcwd())
_run_shell_cmd(cmd)
logger.info("Command %s ran successfully", " ".join(cmd))
Expand All @@ -320,7 +320,7 @@ def _install_req_txt_in_conda_env(self, env_name, local_path):
self._validate_env_name(env_name)
validated_path = self._validate_path(local_path)

cmd = [self._get_conda_exe(), "run", "-n", env_name, "pip", "install", "-r", validated_path, "-U"]
cmd = [self._get_conda_exe(), "run", "-n", env_name, "pip", "install", "-r", validated_path]
logger.info("Activating conda env and installing requirements: %s", " ".join(cmd))
_run_shell_cmd(cmd)
logger.info("Requirements installed successfully in conda env %s", env_name)
Expand Down
Loading