-
-
Notifications
You must be signed in to change notification settings - Fork 617
Expand file tree
/
Copy pathsetup
More file actions
executable file
·30 lines (30 loc) · 555 Bytes
/
setup
File metadata and controls
executable file
·30 lines (30 loc) · 555 Bytes
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
#!/usr/bin/env bash
# Minimum requirements to run ./build --download-dependencies
set -ex
if [ $# -eq 1 ]; then
y=-y
else
y=
fi
if [ -f /.dockerenv ]; then
sudo=
export DEBIAN_FRONTEND=noninteractive
else
sudo=sudo
fi
$sudo apt-get update
if [ -f /.dockerenv ]; then
apt install -y software-properties-common
add-apt-repository -y ppa:git-core/ppa
$sudo apt update
git='git=1:2.*'
else
git=git
fi
$sudo apt-get install $y \
$git \
python3 \
python3-pip \
python3-distutils \
;
python3 -m pip install --user -r requirements.txt