Skip to content

Commit 27ca927

Browse files
committed
INTPYTHON-413 Use venvs instead of base python
1 parent 8fc0e17 commit 27ca927

File tree

2 files changed

+8
-3
lines changed
  • chatgpt-retrieval-plugin
  • llama-index-python-kvstore

2 files changed

+8
-3
lines changed

chatgpt-retrieval-plugin/run.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ set -x
1010
PYTHON_BINARY=$(find_python3)
1111
$PYTHON_BINARY -c "import sys; print(f'Python version found: {sys.version_info}')"
1212

13-
# Install Poetry into base python
14-
$PYTHON_BINARY -m pip install -U pip poetry
13+
# Install Poetry
14+
$PYTHON_BINARY -m venv .venv
15+
. .venv/bin/activate
16+
PYTHON_BINARY=$(which python)
1517
# Create a package specific poetry environment
1618
$PYTHON_BINARY -m poetry env use $PYTHON_BINARY
1719
# Activate the poetry env, which itself does not include poetry

llama-index-python-kvstore/run.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ $PYTHON_BINARY -c "import sys; print(f'Python version found: {sys.version_info}'
1313
# shellcheck disable=SC2164
1414
cd llama-index-integrations/storage/kvstore/llama-index-storage-kvstore-mongodb
1515

16-
# Install Poetry into base python
16+
# Install Poetry
17+
$PYTHON_BINARY -m venv .venv
18+
. .venv/bin/activate
19+
PYTHON_BINARY=$(which python)
1720
$PYTHON_BINARY -m pip install -U pip poetry
1821
# Create a package specific poetry environment
1922
$PYTHON_BINARY -m poetry env use $PYTHON_BINARY

0 commit comments

Comments
 (0)