Skip to content

Commit 16dfc52

Browse files
committed
conditionally reinstall package
1 parent 24e0033 commit 16dfc52

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ install-uv: ## Ensure uv is installed
6868

6969
install: install-uv ## Install uv, dependencies, and pre-commit hooks
7070
uv sync $(PYTHON_ARG) --all-extras
71+
@# Reinstall pyiceberg if Cython extensions (.so) are missing after `make clean` (see #2869)
72+
@if ! find pyiceberg -name "*.so" 2>/dev/null | grep -q .; then \
73+
echo "Cython extensions not found, reinstalling pyiceberg..."; \
74+
uv sync $(PYTHON_ARG) --all-extras --reinstall-package pyiceberg; \
75+
fi
7176
uv run $(PYTHON_ARG) prek install
7277

7378
# ===============

0 commit comments

Comments
 (0)