Skip to content

Commit

Permalink
build: use continerized python interpreter
Browse files Browse the repository at this point in the history
  • Loading branch information
NikLeberg committed Dec 20, 2023
1 parent da17e72 commit be730e2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .devcontainer/.env
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ function get_common_args () {
}
export -f get_common_args

# Python interpreter, programming language.
function python () {
python_args="--hostname python --entrypoint python $(get_common_args)"
docker run $python_args python:slim $*
}
export -f python
function python_bash () {
python_args="--hostname python --entrypoint bash $(get_common_args)"
docker run $python_args python:slim $*
}
export -f python_bash

# QuestaSim tool, simulation of HDL.
function vsim () {
questa_args="--hostname questasim --mac-address=00:ab:ab:ab:ab:ab $(get_common_args)"
Expand Down
4 changes: 2 additions & 2 deletions scripts/makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ help:
# Evaluate dependencies of relevant library files on change.
DEP_PARSE_SCRIPT := $(PROJ_ROOT)/scripts/dep_parse.py
deps.d: $(DEP_PARSE_SCRIPT) $(VHDL_FILES) $(PSL_FILES)
@$(DEP_PARSE_SCRIPT) > deps.d
MAKE_CLEAN += deps.d deps_graph.dot
@python $(DEP_PARSE_SCRIPT) > deps.d
MAKE_CLEAN += deps.d

.PHONY: questa
questa: deps.d
Expand Down

0 comments on commit be730e2

Please sign in to comment.