Skip to content

Commit 46ac57e

Browse files
Install ccf Python package before running demo scripts (#254)
Co-authored-by: Amaury Chamayou <[email protected]>
1 parent 711fdf1 commit 46ac57e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

banking-app/scripts/demo.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@ if [ "200" != "$(curl $server/node/network -k -s -o /dev/null -w %{http_code})"
1616
exit 1
1717
fi
1818

19+
# Set up Python package
20+
echo -e "\n\e[34m <-- Installing Python dependencies --> \e[0m\n"
21+
22+
23+
if [ ! -f "env/bin/activate" ]
24+
then
25+
python3.8 -m venv env
26+
fi
27+
source env/bin/activate
28+
pip install -q ccf==$(cat /opt/ccf_virtual/share/VERSION)
29+
1930
# Change working directory to the one that contains
2031
# proposals, generated certs and keys, and constitution files
2132
cd ${certificate_dir}

0 commit comments

Comments
 (0)