Skip to content
Merged
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
18 changes: 0 additions & 18 deletions bbot/core/helpers/depsinstaller/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,24 +268,6 @@ async def pip_install(self, packages, constraints=None):
packages_str = ",".join(packages)
log.info(f"Installing the following pip packages: {packages_str}")

# Ensure pip is available in the environment
try:
check_pip_command = [sys.executable, "-m", "pip", "--version"]
await self.parent_helper.run(check_pip_command, check=True)
except CalledProcessError:
# pip is not available, try to install it with ensurepip
log.info("pip not found in virtual environment, attempting to install with ensurepip")
try:
ensurepip_command = [sys.executable, "-m", "ensurepip", "--upgrade"]
await self.parent_helper.run(ensurepip_command, check=True)
log.info("Successfully installed pip with ensurepip")
except CalledProcessError as err:
log.warning(
f"Failed to install pip with ensurepip (return code {err.returncode}): {err.stderr}. "
f"If using uv, create the virtual environment with 'uv venv --seed' or set UV_VENV_SEED=1"
)
return False

command = [sys.executable, "-m", "pip", "install", "--upgrade"] + packages

# if no custom constraints are provided, use the constraints of the currently installed version of bbot
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ classifiers = [
"Topic :: Security",
]
dependencies = [
"pip",
"omegaconf>=2.3.0,<3",
"psutil>=5.9.4,<8.0.0",
"wordninja>=2.0.0,<3",
Expand Down
11 changes: 11 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading