This commit is contained in:
12
setup.sh
Normal file
12
setup.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
# Create venv with system-site-packages (so bcc from apt is visible) and install Python deps.
|
||||
set -e
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
if [ ! -d .venv ]; then
|
||||
python3 -m venv --system-site-packages .venv
|
||||
fi
|
||||
|
||||
.venv/bin/pip install --upgrade pip
|
||||
.venv/bin/pip install -r requirements.txt
|
||||
echo "setup done."
|
||||
Reference in New Issue
Block a user