Skip to content

Commit

Permalink
Fixed build fail on Linux at step Install yamlpath running `./ci/gi…
Browse files Browse the repository at this point in the history
…thub/install_yamlpath.sh`. (again)
  • Loading branch information
end2endzone committed Aug 4, 2024
1 parent 8d742ff commit 3463caa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ci/linux/install_yamlpath.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ set -e
# https://github.com/wwkimball/yamlpath
# https://pypi.org/project/yamlpath/

echo Validate if python launcher is installed
which py
# Search for python
echo Validate if python is installed
which python
echo Found python interpreter
python --version
echo

# Search for pip
echo Validate if pip is installed
which pip
echo
Expand Down
9 changes: 9 additions & 0 deletions ci/windows/install_yamlpath.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,25 @@
:: https://github.com/wwkimball/yamlpath
:: https://pypi.org/project/yamlpath/

:: Search for py.exe
:: NOTE: THIS STEP IS WINDOWS ONLY. Linux does not have a python launcher.
echo Validate if python launcher is installed
where py.exe >NUL 2>NUL
if errorlevel 1 (
echo Command failed. Please install python and python launcher to continue.
exit /B %errorlevel%
)
echo Found python launcher.
echo.

:: Search for python.exe
echo Validate if python is installed
where python.exe >NUL 2>NUL
echo Found python interpreter
python --version
echo.

:: Search for pip.exe
echo Validate if pip is installed
where pip.exe >NUL 2>NUL
if errorlevel 1 (
Expand Down

0 comments on commit 3463caa

Please sign in to comment.