-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
225 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# 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)" | ||
|
||
# Check if the venv folder doesn't exist | ||
if [ ! -d "$SCRIPT_DIR/venv" ]; then | ||
echo "Creating venv..." | ||
python3 -m venv venv | ||
fi | ||
|
||
# Activate the virtual environment | ||
source "$SCRIPT_DIR/venv/bin/activate" | ||
|
||
# Run setup_linux.py script with platform requirements | ||
python "$SCRIPT_DIR/setup/setup_linux.py" --platform-requirements-file=requirements_runpod.txt |
Oops, something went wrong.