@@ -2374,8 +2374,8 @@ def maybe_abort_no_space(err, step_label):
23742374 console .print (f"\n [bold]Step { step_num } :[/bold] Setting up Cocotb..." )
23752375 venv_cocotb = project_root_path / 'venv-cocotb'
23762376
2377- # Check if already installed
2378- is_installed = check_python_package_installed (venv_cocotb , 'caravel-cocotb ' )
2377+ # Check if already installed (package name is caravel_cocotb in pyproject.toml)
2378+ is_installed = check_python_package_installed (venv_cocotb , 'caravel_cocotb ' )
23792379
23802380 if is_installed and not overwrite :
23812381 console .print ("[green]✓[/green] Cocotb already installed" )
@@ -2402,14 +2402,18 @@ def maybe_abort_no_space(err, step_label):
24022402 # Determine the python executable path in venv
24032403 venv_python = str (venv_cocotb / 'bin' / 'python3' )
24042404
2405- console .print ("[cyan]Installing caravel-cocotb...[/cyan]" )
2405+ console .print ("[cyan]Installing caravel-cocotb from source (chipfoundry/caravel-sim-infrastructure) ...[/cyan]" )
24062406 subprocess .run (
24072407 [venv_python , '-m' , 'pip' , 'install' , '--upgrade' , '--no-cache-dir' , 'pip' ],
24082408 check = True ,
24092409 capture_output = True
24102410 )
2411+ # Install from GitHub source (workaround: PyPI package is under efabless, we use chipfoundry repo)
24112412 subprocess .run (
2412- [venv_python , '-m' , 'pip' , 'install' , '--upgrade' , '--no-cache-dir' , 'caravel-cocotb' ],
2413+ [
2414+ venv_python , '-m' , 'pip' , 'install' , '--upgrade' , '--no-cache-dir' ,
2415+ 'git+https://github.com/chipfoundry/caravel-sim-infrastructure.git@main#subdirectory=cocotb'
2416+ ],
24132417 check = True ,
24142418 capture_output = True
24152419 )
0 commit comments