-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.bat
40 lines (32 loc) · 1.01 KB
/
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
40
@echo off
setlocal
set "programName=python"
REM Check if Python is installed
%programName% -V
REM Check the errorlevel to determine if the program is installed
if %errorlevel% equ 0 (
echo Python detected. Proceeding with installation.
goto :install
) else (
echo Python not detected. Aborting installation.
goto :EOF
)
:install
REM install virtual environment and required dependencies
echo Configuring virtual environment
python -m venv %~dp0\venv
echo Installing required dependencies
%~dp0\venv\Scripts\pip.exe install -r %~dp0\requirements.txt
echo:
if %errorlevel% equ 0 (
echo Install complete
goto :success
) else (
echo Errors were encountered during installation. Aborting.
goto :EOF
)
:success
echo Run `venv\Scripts\activate` to activate the virtual environment
echo Run `python main.py -h` to see the available help information
echo Read the README at https://github.com/cyn1x/jotunpy for further information
endlocal