@@ -268,24 +268,6 @@ async def pip_install(self, packages, constraints=None):
268268 packages_str = "," .join (packages )
269269 log .info (f"Installing the following pip packages: { packages_str } " )
270270
271- # Ensure pip is available in the environment
272- try :
273- check_pip_command = [sys .executable , "-m" , "pip" , "--version" ]
274- await self .parent_helper .run (check_pip_command , check = True )
275- except CalledProcessError :
276- # pip is not available, try to install it with ensurepip
277- log .info ("pip not found in virtual environment, attempting to install with ensurepip" )
278- try :
279- ensurepip_command = [sys .executable , "-m" , "ensurepip" , "--upgrade" ]
280- await self .parent_helper .run (ensurepip_command , check = True )
281- log .info ("Successfully installed pip with ensurepip" )
282- except CalledProcessError as err :
283- log .warning (
284- f"Failed to install pip with ensurepip (return code { err .returncode } ): { err .stderr } . "
285- f"If using uv, create the virtual environment with 'uv venv --seed' or set UV_VENV_SEED=1"
286- )
287- return False
288-
289271 command = [sys .executable , "-m" , "pip" , "install" , "--upgrade" ] + packages
290272
291273 # if no custom constraints are provided, use the constraints of the currently installed version of bbot
0 commit comments