aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/build.cmd
blob: 2261ffc9f55e2b264924ece0c7c19ed490aa47d4 (plain)
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
@echo off
setlocal ENABLEDELAYEDEXPANSION
set basedir=%~dp0
set awlsim_base=%basedir%\..


set PATH=%PATH%;C:\WINDOWS;C:\WINDOWS\SYSTEM32
for /D %%f in ( "C:\PYTHON*" ) do set PATH=!PATH!;%%f
for /D %%f in ( "%USERPROFILE%\AppData\Local\Programs\Python\Python*" ) do set PATH=!PATH!;%%f;%%f\Scripts


cd %awlsim_base%
if ERRORLEVEL 1 goto error_cd
set AWLSIM_CYTHON_BUILD=1
py -3 setup.py build
if ERRORLEVEL 1 goto error_build


echo ---
echo finished
pause
exit /B 0


:error_cd
echo FAILED to cd to base directory
goto error

:error_build
echo FAILED to build Awlsim
goto error

:error
pause
exit 1
bues.ch cgit interface