Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,13 @@ install-python-dependencies-minimal: ## Install minimal Python dependencies usin
install-python-dependencies-ci: ## Install Python CI dependencies in system environment using uv
# Install CPU-only torch first to prevent CUDA dependency issues
pip uninstall torch torchvision -y || true
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu --force-reinstall
uv pip sync --system sdk/python/requirements/py$(PYTHON_VERSION)-ci-requirements.txt
@if [ "$$(uname -s)" = "Linux" ]; then \
echo "Installing dependencies with torch CPU index for Linux..."; \
uv pip sync --system --extra-index-url https://download.pytorch.org/whl/cpu --index-strategy unsafe-best-match sdk/python/requirements/py$(PYTHON_VERSION)-ci-requirements.txt; \
else \
echo "Installing dependencies from PyPI for macOS..."; \
uv pip sync --system sdk/python/requirements/py$(PYTHON_VERSION)-ci-requirements.txt; \
fi
uv pip install --system --no-deps -e .

# Used in github actions/ci
Expand Down
Loading