-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.bat
54 lines (39 loc) · 1.17 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
@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\basket basket
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 TOMATO install complete.
echo Join the Discord server for support: https://discord.gg/5HeFcrVFJZ
echo.
echo Run 'activate' to activate TOMATO's Python virtual environment and
echo 'deactivate' to, well, deactivate it.
echo.
echo Run 'tomato -h' for further instructions.
echo.
echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
rmdir /s /q %root%\build
rmdir /s /q %root%\dist
rmdir /s /q %root%\TOMATO.egg-info
pause
deactivate