From 118fef617f54bb61a6fe54f70301a2c1d3225b17 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 17 Sep 2024 23:55:15 -0500 Subject: [PATCH] [buildcore] Remove python -m prefix from mypy command --- deps/buildcore/base.mk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/deps/buildcore/base.mk b/deps/buildcore/base.mk index 839510cb..ff56f632 100644 --- a/deps/buildcore/base.mk +++ b/deps/buildcore/base.mk @@ -44,6 +44,9 @@ ifdef BC_VAR_USE_DOCKER_DEVENV exit 1 endif endif + ifndef BC_VAR_DEVENV_ROOT + BC_VAR_DEVENV_ROOT="." + endif else BC_CMD_PY3=${BC_CMD_HOST_PY3} endif @@ -90,7 +93,7 @@ purge: ${BC_CMD_RM_RF} compile_commands.json .PHONY: test test: build - ${BC_CMD_ENVRUN} ${BC_CMD_PY3} -m mypy ${BC_VAR_SCRIPTS} + ${BC_CMD_ENVRUN} mypy ${BC_VAR_SCRIPTS} ${BC_CMD_CMAKE_BUILD} ${BC_VAR_BUILD_PATH} test .PHONY: test-verbose test-verbose: build @@ -102,7 +105,7 @@ test-rerun-verbose: build ifdef BC_VAR_USE_DOCKER_DEVENV .PHONY: devenv-image devenv-image: - docker build . -t ${BC_VAR_DEVENV_IMAGE} + docker build ${BC_VAR_DEVENV_ROOT} -t ${BC_VAR_DEVENV_IMAGE} .PHONY: devenv-create devenv-create: docker run -d \