-
-
Notifications
You must be signed in to change notification settings - Fork 617
Expand file tree
/
Copy pathsetup
More file actions
executable file
·34 lines (34 loc) · 589 Bytes
/
setup
File metadata and controls
executable file
·34 lines (34 loc) · 589 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
31
32
33
34
#!/usr/bin/env bash
# Minimum requirements to run ./build --download-dependencies
set -ex
if [ $# -eq 1 ]; then
y=-y
else
y=
fi
if [ true = "$LKMC_IN_DOCKER" ]; then
indocker=true
else
indocker=false
fi
if "$indocker"; then
sudo=
export DEBIAN_FRONTEND=noninteractive
else
sudo=sudo
fi
if "$indocker"; then
$sudo apt update
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 -m pip install -r requirements.txt