-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathinstall.sh
executable file
·59 lines (52 loc) · 1.77 KB
/
install.sh
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
#!/bin/bash
printf "%s\n" "
###############################################################################
# This script installs EOSFactory. It needs to be executed from within
# the 'eosfactory' folder.
# This file was downloaded from https://github.com/tokenika/eosfactory
###############################################################################
"
printf "%s" "
Installing 'eosfactory' package locally with the Python pip system...
"
###############################################################################
# It is essential that the package is installed as a symlink, with
# the flag '-e'
###############################################################################
pip3 install --user -e .
chmod a+x eosfactory/pythonmd.sh
printf "%s\n" "
Configuring the eosfactory installation...
"
python3 eosfactory/install.py
printf "%s\n" "
Verifying dependencies of EOSFactory...
"
python3 -m eosfactory.config --dependencies
ret=$?
if [ $ret -ne 0 ]; then
exit $ret
fi
printf "%s\n" "
OK
"
txtbld=$(tput bold)
bldred=${txtbld}$(tput setaf 1)
txtrst=$(tput sgr0)
printf "${bldred}%s${txtrst}" "
______ ____ _____ ______ _____ _______ ____ _______ __
| ____/ __ \ / ____|| ____/\ / ____|__ __/ __ \| __ \ \ / /
| |__ | | | | (___ | |__ / \ | | | | | | | | |__) \ \_/ /
| __|| | | |\___ \ | __/ /\ \| | | | | | | | _ / \ /
| |___| |__| |____) || | / ____ \ |____ | | | |__| | | \ \ | |
|______\____/|_____/ |_|/_/ \_\_____| |_| \____/|_| \_\ |_|
"
printf "%s\n" "
To verify EOSFactory installation navigate to the 'eosfactory' folder and run
these tests:
"
printf "%s\n" "
$ python3 tests/hello_world.py
$ python3 tests/eosio_token.py
$ python3 tests/tic_tac_toe.py
"