Skip to content

Commit 8bacf8e

Browse files
committed
update requirements script
1 parent 5ed1255 commit 8bacf8e

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

requirements.sh

+19-11
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,30 @@ check_hash() {
88
echo "Hash verification success!"
99
}
1010

11-
VERSION="1.8.4"
12-
HASH="b60c0aad83e1452a1646aef2b7e223cb66cb9a9cae52aaafb3d4ac9f46688580"
11+
pip_depends=(
12+
"setuptools"
13+
"requests"
14+
)
15+
16+
for d in ${pip_depends[@]}; do
17+
echo ">> Installing $d (pip)"
18+
pip install $d
19+
done
20+
21+
SLIX_VERSION="1.8.4"
22+
SLIX_HASH="b60c0aad83e1452a1646aef2b7e223cb66cb9a9cae52aaafb3d4ac9f46688580"
1323

1424
echo ">> Downloading slixmpp"
15-
wget https://codeberg.org/poezio/slixmpp/archive/slix-$VERSION.tar.gz
25+
wget -q --show-progress "https://codeberg.org/poezio/slixmpp/archive/slix-$SLIX_VERSION.tar.gz"
26+
check_hash "slix-$SLIX_VERSION.tar.gz" "$SLIX_HASH"
27+
1628
echo ">> Extracting slixmpp"
17-
tar xf slix-$VERSION.tar.gz
29+
tar xf "slix-$SLIX_VERSION.tar.gz"
1830

19-
cd slixmpp
31+
pushd slixmpp
2032
echo ">> Installing slixmpp"
2133
python3 setup.py install
22-
cd ..
23-
24-
rm -rf slixmpp slix-$VERSION.tar.gz
25-
26-
echo ">> Installing requests"
27-
pip3 install requests
34+
popd
2835

36+
rm -rf "slixmpp" *.tar.gz*
2937
echo ">> Installed all the requirements"

0 commit comments

Comments
 (0)