-
Notifications
You must be signed in to change notification settings - Fork 14
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
50 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
@echo off | ||
setlocal enableDelayedExpansion | ||
|
||
set uniqid=%random% | ||
|
||
|
||
for /l %%m in (5, 1, 6) do ( | ||
|
||
set ENV_TMP=3%%m-!uniqid! | ||
echo ENV_TMP is !ENV_TMP! | ||
set SEEDLING=seedling-!ENV_TMP! | ||
echo SEEDLING is !SEEDLING! | ||
set SAPLING=sapling-!ENV_TMP! | ||
echo SAPLING is !SAPLING! | ||
|
||
set TEMP_BLD_DIR=%temp%\larch-from-git-3%%m-!uniqid! | ||
echo TEMP_BLD_DIR is !TEMP_BLD_DIR! | ||
mkdir !TEMP_BLD_DIR! | ||
git clone https://github.com/jpn--/larch.git !TEMP_BLD_DIR! | ||
|
||
cd /D !TEMP_BLD_DIR! | ||
|
||
conda env create --file seedling-3%%m.yml --name !SEEDLING! | ||
|
||
|
||
call activate !SEEDLING! | ||
set OPENBLAS_NUM_THREADS=1 | ||
|
||
|
||
python setup.py build | ||
EXIT /B 1 | ||
if !ERRORLEVEL! NEQ 0 ( | ||
REM Install failed | ||
echo python build larch returned error !ERRORLEVEL! | ||
EXIT /B 1 | ||
) | ||
|
||
python setup_test.py | ||
if !ERRORLEVEL! NEQ 0 ( | ||
REM Install failed | ||
echo python test larch returned error !ERRORLEVEL! | ||
EXIT /B 1 | ||
) | ||
|
||
) |
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,5 @@ | ||
@echo off | ||
setlocal enableDelayedExpansion | ||
|
||
|
||
git clone https://github.com/jpn--/openblas-mod.git %temp%/openblas |