Make the most important dependency mandatory

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2021-03-25 00:00:01 +00:00
parent 3aa1a670b7
commit 956adffe40
6 changed files with 32 additions and 17 deletions

14
setup
View File

@@ -1,12 +1,20 @@
#!/usr/bin/env bash
# Minimum requirements to run ./build --download-dependencies
y=
if [ $# -eq 1 ]; then
y=-y
else
y=
fi
apt-get update
apt-get install $y \
if [ -f /.dockerenv ]; then
sudo=
else
sudo=sudo
fi
$sudo apt-get update
$sudo apt-get install $y \
git \
python3 \
python3-pip \
python3-distutils \
;
python3 -m pip install --user -r requirements.txt