Open bman12three4 opened 3 months ago
@bman12three4 good catch!
I'm thinking the solution might be to activate the virtual enviroment within the Makefile.
*** 338,349 ****
install-caravel-cocotb:
rm -rf ./venv-cocotb
$(PYTHON_BIN) -m venv ./venv-cocotb
! ./venv-cocotb/bin/$(PYTHON_BIN) -m pip install --upgrade --no-cache-dir pip
! ./venv-cocotb/bin/$(PYTHON_BIN) -m pip install --upgrade --no-cache-dir caravel-cocotb
.PHONY: setup-cocotb-env
setup-cocotb-env:
! @(python3 $(PROJECT_ROOT)/verilog/dv/setup-cocotb.py $(CARAVEL_ROOT) $(MCW_ROOT) $(PDK_ROOT) $(PDK) $(PROJECT_ROOT))
.PHONY: setup-cocotb
setup-cocotb: install-caravel-cocotb setup-cocotb-env simenv-cocotb
--- 338,351 ----
install-caravel-cocotb:
rm -rf ./venv-cocotb
$(PYTHON_BIN) -m venv ./venv-cocotb
! . ./venv-cocotb/bin/activate && \
! $(PYTHON_BIN) -m pip install --upgrade --no-cache-dir pip && \
! $(PYTHON_BIN) -m pip install --upgrade --no-cache-dir caravel-cocotb
.PHONY: setup-cocotb-env
setup-cocotb-env:
! @(. ./venv-cocotb/bin/activate && \
! python3 $(PROJECT_ROOT)/verilog/dv/setup-cocotb.py $(CARAVEL_ROOT) $(MCW_ROOT) $(PDK_ROOT) $(PDK) $(PROJECT_ROOT))
.PHONY: setup-cocotb
setup-cocotb: install-caravel-cocotb setup-cocotb-env simenv-cocotb
I believe this is the fix: