Files
linux-kernel-module-cheat/setup
Ciro Santilli 20bc64cd69 docs: create virtualenv
Newer Ubuntu does not allow global package installs, it is so annoying!
2022-07-19 20:21:19 +00:00

31 lines
548 B
Bash
Executable File

#!/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 -r requirements.txt