-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.bat
60 lines (46 loc) · 1.49 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
echo off
rem ----------------------------------------------------------
rem Allow user to choose which virtual environment to set up
setlocal
echo This script will set up your virtual environment.
echo Do not close this window until you are told to do so!
echo Please select which virtual environment to set up:
echo A: Environment for using Lazuli
echo B: Environment for testing/distributing Lazuli
choice /c AB /t 10 /d A /m "What is your choice"
if errorlevel 2 call :distrubute
if errorlevel 1 call :use
pause
endlocal
rem ----------------------------------------------------------
:: function to run from choice A
:use
echo You have selected A: Environment for *USING* Lazuli
echo Generating venv folder...
rem Generate VENV in project dir
Python -m venv %~dp0venv
echo Installing dependencies...
rem Activate the VENV
call venv\scripts\activate.bat
rem Install requirements
pip install wheel
pip install -r requirements.txt
echo Sequence completed! You may now close this window:
pause
goto :eof
rem ----------------------------------------------------------
:: function to run from choice B
:distrubute
echo You have selected B: Environment for testing/distributing Lazuli
echo Generating pypi folder...
rem Generate VENV in project dir
Python -m venv %~dp0pypi
echo Installing dependencies...
rem Activate the VENV
call pypi\scripts\activate.bat
rem Install requirements
pip install wheel
pip install -r contributor_requirements.txt
echo Sequence completed! You may now close this window:
pause
EXIT