-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.bat
39 lines (31 loc) · 875 Bytes
/
install.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
@echo off
setlocal EnableDelayedExpansion
call "%~dp0get_conda_exec.bat"
if !errorlevel! neq 0 (
pause
exit /B !errorlevel!
)
set PY_VER=3.10
set ENV_NAME=plate_simulation
set MY_CONDA=!MY_CONDA_EXE:"=!
cd %~dp0
set PYTHONUTF8=1
set CONDA_CHANNEL_PRIORITY=strict
:: all dependencies are installed from conda
set PIP_NO_DEPS=1
set MY_CONDA_ENV_FILE=environments\py-%PY_VER%-win-64.conda.lock.yml
if not exist %MY_CONDA_ENV_FILE% (
echo "** ERROR: Could not find the conda environment specification file '%MY_CONDA_ENV_FILE%' **"
pause
exit /B 0
)
call "!MY_CONDA!" activate base ^
&& call "!MY_CONDA!" env create -y -n %ENV_NAME% --file %MY_CONDA_ENV_FILE% ^
&& call "!MY_CONDA!" run -n %ENV_NAME% pip install -e .
if !errorlevel! neq 0 (
echo "** ERROR: Installation failed **"
pause
exit /B !errorlevel!
)
pause
cmd /k "!MY_CONDA!" activate base