forked from lcompilers/lpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
:: Good documentation for Windows batch files: | ||
:: https://ss64.com/nt/ | ||
:: | ||
:: Write the script between the two horizontal lines (`--------------`). | ||
:: Put `call :check` after each command. This will ensure that if the command | ||
:: fails, then the script will abort immediately with a nonzero exit code. | ||
:: Doing that makes it equivalent to `set -e` in Bash. | ||
:: | ||
:: Enable echo (equivalent of `set -x` in Bash) | ||
@echo on | ||
:: Inherit all current variables from the master environment | ||
setlocal | ||
:: | ||
:: ----------------------------------------------------------------------------- | ||
|
||
set CONDA_INSTALL_LOCN=C:\\Miniconda36-x64 | ||
call :check | ||
|
||
call %CONDA_INSTALL_LOCN%\Scripts\activate.bat | ||
call :check | ||
|
||
call conda config --set always_yes yes --set changeps1 no | ||
call :check | ||
call conda info -a | ||
call :check | ||
call conda update -q conda | ||
call :check | ||
call conda install python=3.7 pytest llvmlite prompt_toolkit | ||
call :check | ||
pip install antlr4-python3-runtime | ||
call :check | ||
|
||
:: ----------------------------------------------------------------------------- | ||
:: End of script. We exit the script now. | ||
goto :eof | ||
|
||
:: Function definitions | ||
:check | ||
if errorlevel 1 ( | ||
echo "Non zero exit code returned, aborting..." | ||
(goto) 2>nul & endlocal & exit /b %errorlevel% | ||
) |