From 858a6960926d5d529a219e2149b7e7e7b889280e Mon Sep 17 00:00:00 2001 From: Steven Kalt Date: Tue, 24 Sep 2024 21:27:47 -0400 Subject: [PATCH] ci(wrappers/python): debug path to mypy on windows --- .../python/scripts/ci/github/debug_python_paths.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/wrappers/python/scripts/ci/github/debug_python_paths.sh b/wrappers/python/scripts/ci/github/debug_python_paths.sh index 5e5e5ccc..580cb601 100755 --- a/wrappers/python/scripts/ci/github/debug_python_paths.sh +++ b/wrappers/python/scripts/ci/github/debug_python_paths.sh @@ -3,10 +3,19 @@ set -eu cd wrappers/python export VIRTUAL_ENV="$PWD/.venv" export PATH="$VIRTUAL_ENV/bin:$PATH" -set -x -echo "$PATH" | tr ':' '\n' +# shellcheck disable=SC2016 +echo '$PATH:' +echo "$PATH" | tr ':' '\n - ' + command -v python command -v python3 command -v poetry || echo "missing poetry" +if ! command -v mypy; then + if command -v mypy.exe; then + echo "missing mypy, but found mypy.exe" + else + echo "missing mypy{.exe}" + fi +fi stat ./.venv/bin/python || stat ./.venv/bin/python.exe || echo "missing .venv/bin/python{.exe}" python --version