Skip to content

Commit

Permalink
Venv
Browse files Browse the repository at this point in the history
  • Loading branch information
KillianLucas committed Dec 4, 2024
1 parent 0f41a14 commit 539fe98
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions installers/new-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,14 @@ fi
echo "Installing Python $PYTHON_VERSION..."
uv python install "$PYTHON_VERSION"

# Direct installation using uv with specific Python version
# Create virtual environment
echo "Creating virtual environment..."
mkdir -p "$HOME/.openinterpreter"
uv venv --python "$PYTHON_VERSION" "$HOME/.openinterpreter/venv"

# Install package into the venv
echo "Installing package..."
uv pip install --system --python "$PYTHON_VERSION" "git+$REPO_URL@$BRANCH"
uv pip install --python "$HOME/.openinterpreter/venv/bin/python" "git+$REPO_URL@$BRANCH"

echo
echo "Installation complete!"

0 comments on commit 539fe98

Please sign in to comment.