build: Add poetry command to use Python 3.11 for environment setup (#1972)

This commit is contained in:
DaxServer 2024-05-23 18:05:19 +02:00 committed by GitHub
parent 602ffcdffb
commit b118df606f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -130,8 +130,9 @@ pull-docker-image:
install-python-dependencies:
@echo "$(GREEN)Installing Python dependencies...$(RESET)"
poetry env use python3.11
@if [ "$(shell uname)" = "Darwin" ]; then \
echo "$(BLUE)Installing `chroma-hnswlib`...$(RESET)"; \
echo "$(BLUE)Installing chroma-hnswlib...$(RESET)"; \
export HNSWLIB_NO_NATIVE=1; \
poetry run pip install chroma-hnswlib; \
fi