Skip to content

Commit

Permalink
Update runpod setup
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaltais committed Jun 25, 2023
1 parent b7c9bcd commit 7c25847
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion setup-runpod.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env bash

# This gets the directory the script is run from so pathing can work relative to the script where needed.
SCRIPT_DIR="$(cd -- $(dirname -- "$0") && pwd)"

Expand All @@ -7,8 +9,13 @@ if [ ! -d "$SCRIPT_DIR/venv" ]; then
python3 -m venv venv
fi

# Install tk
echo "Install tk..."
apt update -y && apt install -y python3-tk

# Activate the virtual environment
source "$SCRIPT_DIR/venv/bin/activate"
echo "Activate venv..."
source "$SCRIPT_DIR/venv/bin/activate" || exit 1

# Run setup_linux.py script with platform requirements
python "$SCRIPT_DIR/setup/setup_linux.py" --platform-requirements-file=requirements_runpod.txt

0 comments on commit 7c25847

Please sign in to comment.