Skip to content

Commit d779a0c

Browse files
authored
Merge pull request #46 from blink1073/fix-llama-index
INTPYTHON-413 Use venvs instead of base python
2 parents 7c2a485 + 2c902cf commit d779a0c

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

.evergreen/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ buildvariants:
175175
expansions:
176176
DIR: llama-index-python-vectorstore
177177
REPO_NAME: llama_index
178-
CLONE_URL: https://github.com/run-llama/llama_index.git
178+
# TODO: Update INTPYTHON-414
179+
CLONE_URL: -b INTPYTHON-414 --single-branch https://github.com/blink1073/llama_index.git
179180
DATABASE: llama_index_test_db
180181
run_on:
181182
- rhel87-small

chatgpt-retrieval-plugin/run.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +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
13+
# Install Poetry
14+
$PYTHON_BINARY -m venv .venv
15+
. .venv/bin/activate
16+
PYTHON_BINARY=$(which python)
1417
$PYTHON_BINARY -m pip install -U pip poetry
1518
# Create a package specific poetry environment
1619
$PYTHON_BINARY -m poetry env use $PYTHON_BINARY

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

llama-index-python-vectorstore/run.sh

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

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

0 commit comments

Comments
 (0)