Skip to content

Commit

Permalink
Merge pull request #46 from blink1073/fix-llama-index
Browse files Browse the repository at this point in the history
INTPYTHON-413 Use venvs instead of base python
  • Loading branch information
blink1073 authored Nov 14, 2024
2 parents 7c2a485 + 2c902cf commit d779a0c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ buildvariants:
expansions:
DIR: llama-index-python-vectorstore
REPO_NAME: llama_index
CLONE_URL: https://github.com/run-llama/llama_index.git
# TODO: Update INTPYTHON-414
CLONE_URL: -b INTPYTHON-414 --single-branch https://github.com/blink1073/llama_index.git
DATABASE: llama_index_test_db
run_on:
- rhel87-small
Expand Down
5 changes: 4 additions & 1 deletion chatgpt-retrieval-plugin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ set -x
PYTHON_BINARY=$(find_python3)
$PYTHON_BINARY -c "import sys; print(f'Python version found: {sys.version_info}')"

# Install Poetry into base python
# Install Poetry
$PYTHON_BINARY -m venv .venv
. .venv/bin/activate
PYTHON_BINARY=$(which python)
$PYTHON_BINARY -m pip install -U pip poetry
# Create a package specific poetry environment
$PYTHON_BINARY -m poetry env use $PYTHON_BINARY
Expand Down
5 changes: 4 additions & 1 deletion llama-index-python-kvstore/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ $PYTHON_BINARY -c "import sys; print(f'Python version found: {sys.version_info}'
# shellcheck disable=SC2164
cd llama-index-integrations/storage/kvstore/llama-index-storage-kvstore-mongodb

# Install Poetry into base python
# Install Poetry
$PYTHON_BINARY -m venv .venv
. .venv/bin/activate
PYTHON_BINARY=$(which python)
$PYTHON_BINARY -m pip install -U pip poetry
# Create a package specific poetry environment
$PYTHON_BINARY -m poetry env use $PYTHON_BINARY
Expand Down
5 changes: 4 additions & 1 deletion llama-index-python-vectorstore/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ $PYTHON_BINARY -c "import sys; print(f'Python version found: {sys.version_info}'
# shellcheck disable=SC2164
cd llama-index-integrations/vector_stores/llama-index-vector-stores-mongodb

# Install Poetry into base python
# Install Poetry
$PYTHON_BINARY -m venv .venv
. .venv/bin/activate
PYTHON_BINARY=$(which python)
$PYTHON_BINARY -m pip install -U pip poetry
# Create a package specific poetry environment
$PYTHON_BINARY -m poetry env use $PYTHON_BINARY
Expand Down

0 comments on commit d779a0c

Please sign in to comment.