-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.sh
executable file
·62 lines (43 loc) · 1.37 KB
/
deploy.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
60
61
#!/bin/sh
base_dir=/g00je
core_dir=$base_dir/core
tyche_dir=$base_dir/tyche
plutus_dir=$base_dir/plutus
function check {
if [ $1 != 0 ]; then
echo "Error: $2 failed!"
exit 1;
fi
}
source $tyche_dir/.env/bin/activate
cd "$(dirname "$0")"
maturin build -o dist
check $? "martin build"
pip install ./dist/plutus_internal-*.whl --force-reinstall
check $? "pip install in tyche"
cargo run
check $? "making plutus dir (cargo run)"
cd pkg
# send stdout to null
python -m build --no-isolation --sdist --wheel --outdir dist/ .
check $? "building the python package plutus"
pip install ./dist/plutus-*.whl --force-reinstall
check $? "pip install plutus in tyche"
python ../test.py
check $? "tests"
mkdir -p $plutus_dir/include/
cp -f models.h $plutus_dir/include/
echo "pip install in $core_dir"
source $core_dir/.env/bin/activate
pip install ../dist/plutus_internal-*.whl --force-reinstall
check $? "pip install plutus_internal in core"
pip install ./dist/plutus-*.whl --force-reinstall
check $? "pip install plutus in core"
echo "pip install in $plutus_dir"
source $plutus_dir/.env/bin/activate
pip install ../dist/plutus_internal-*.whl --force-reinstall
check $? "pip install plutus_internal in plutus"
pip install ./dist/plutus-*.whl --force-reinstall
check $? "pip install plutus in plutus"
source $tyche_dir/.env/bin/activate
rm -rf dist ../dist build *.egg-info