-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit_env.bat
43 lines (34 loc) · 866 Bytes
/
init_env.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
40
41
42
43
@echo off && setlocal
:: include user definitions
if exist user_definitions_%COMPUTERNAME%.bat (
call user_definitions_%COMPUTERNAME%.bat
) else (
call user_definitions_default.bat
)
:: python environment for daily
call conda create -n daily python=3.11 -y
call conda activate daily
:: set environments
if exist %VC_ENV_FILE_BUILDTOOLS% (
call %VC_ENV_FILE_BUILDTOOLS%
) else (
if exist %VC_ENV_FILE_COMMUNITY% (
call %VC_ENV_FILE_COMMUNITY%
) else (
if exist %VC_ENV_FILE_PRO% (
call %VC_ENV_FILE_PRO%
) else (
echo No Visual Studio compiler.
exit /b 0
)
)
)
pip install -r requirements.txt
pip install -U --pre --no-deps -r requirements_no_deps.txt
call conda deactivate
:: vcpkg for opencl
cd vcpkg
bootstrap-vcpkg.bat
vcpkg.exe install opencl
cd ..
:end_script