-
Notifications
You must be signed in to change notification settings - Fork 3
/
Install.bat
57 lines (42 loc) · 1.25 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
@echo off
set python=%1
IF "%python%"=="" set python="python"
set root=%cd%
:: installation
git submodule update --progress --init --recursive --force
%python% -m venv venv
:: Windows doesn't allow the creation of symlinks without special priviledges, so hardlinks are created instead.
mklink /h activate.bat venv\Scripts\activate.bat
mklink /j venv\Scripts\chia chia_blockchain\chia
mklink /j chia chia_blockchain\chia
mklink /j venv\Scripts\snake snake
mklink /j venv\Scripts\media media
call activate.bat
python install_helper.py || goto :error
goto :all_good
: error
pause
exit
: all_good
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python setup.py install
:: post-installation message
echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
echo.
echo SERPENT install complete.
echo Join the Discord server for support: https://discord.gg/yPdCmHSgMe
echo.
echo Run 'activate' to activate WILLOW's Python virtual environment and
echo 'deactivate' to, well, deactivate it.
echo.
echo Run 'gui_serpent' to run the GUI
echo.
echo Run 'serpent -h' to run the CLI interface
echo.
echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
rmdir /s /q %root%\build
rmdir /s /q %root%\dist
rmdir /s /q %root%\SERPENT.egg-info
pause
deactivate