-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.bat
86 lines (76 loc) · 1.93 KB
/
setup.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
REM Upgrade pip
echo.
echo ----- Upgrading pip -----
python -m pip install --upgrade pip
IF %ERRORLEVEL% NEQ 0 (
echo Error upgrading pip.
exit /b %ERRORLEVEL%
)
REM Install wheel
echo.
echo ----- Installing tools -----
pip install wheel
IF %ERRORLEVEL% NEQ 0 (
echo Error installing wheel.
exit /b %ERRORLEVEL%
)
REM Install global requirements
echo.
echo ----- Installing global requirements -----
pip install -r requirements.txt
IF %ERRORLEVEL% NEQ 0 (
echo Error installing global requirements.
exit /b %ERRORLEVEL%
)
REM Install NI source requirements
echo.
echo ----- Installing NI source requirements -----
pip install -r sources/ni/requirements.txt
IF %ERRORLEVEL% NEQ 0 (
echo Error installing NI source requirements.
exit /b %ERRORLEVEL%
)
REM Install Parsley source requirements
echo.
echo ----- Installing Parsley source requirements -----
pip install -r sources/parsley/requirements.txt
IF %ERRORLEVEL% NEQ 0 (
echo Error installing Parsley source requirements.
exit /b %ERRORLEVEL%
)
REM Install Dashboard sink requirements
echo.
echo ----- Installing Dashboard sink requirements -----
pip install -r sinks/dashboard/requirements.txt
IF %ERRORLEVEL% NEQ 0 (
echo Error installing Dashboard sink requirements.
exit /b %ERRORLEVEL%
)
REM Install Omnibus library
echo.
echo ----- Installing Omnibus library -----
pip install -e .
IF %ERRORLEVEL% NEQ 0 (
echo Error installing Omnibus library.
exit /b %ERRORLEVEL%
)
REM Install Parsley library
echo.
echo ----- Initializing Git submodules -----
git submodule update --init --recursive
IF %ERRORLEVEL% NEQ 0 (
echo Error initializing Git submodules.
exit /b %ERRORLEVEL%
)
echo.
echo ----- Installing Parsley library -----
pip install -e ./parsley
IF %ERRORLEVEL% NEQ 0 (
echo Error installing Parsley library.
exit /b %ERRORLEVEL%
)
echo.
echo ----- Omnibus setup successfully -----
exit /b 0