File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
llama-index-python-kvstore Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,10 @@ set -x
10
10
PYTHON_BINARY=$( find_python3)
11
11
$PYTHON_BINARY -c " import sys; print(f'Python version found: {sys.version_info}')"
12
12
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)
15
17
# Create a package specific poetry environment
16
18
$PYTHON_BINARY -m poetry env use $PYTHON_BINARY
17
19
# Activate the poetry env, which itself does not include poetry
Original file line number Diff line number Diff line change @@ -13,7 +13,10 @@ $PYTHON_BINARY -c "import sys; print(f'Python version found: {sys.version_info}'
13
13
# shellcheck disable=SC2164
14
14
cd llama-index-integrations/storage/kvstore/llama-index-storage-kvstore-mongodb
15
15
16
- # Install Poetry into base python
16
+ # Install Poetry
17
+ $PYTHON_BINARY -m venv .venv
18
+ . .venv/bin/activate
19
+ PYTHON_BINARY=$( which python)
17
20
$PYTHON_BINARY -m pip install -U pip poetry
18
21
# Create a package specific poetry environment
19
22
$PYTHON_BINARY -m poetry env use $PYTHON_BINARY
You can’t perform that action at this time.
0 commit comments