-
Notifications
You must be signed in to change notification settings - Fork 428
infra: allow rerun make install without prompt
#2979
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
a854129
24e0033
16dfc52
c07a9f9
d017475
0eaa3ec
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -66,17 +66,15 @@ install-uv: ## Ensure uv is installed | |
| echo "uv is already installed."; \ | ||
| fi | ||
|
|
||
| setup-venv: ## Create virtual environment | ||
| uv venv $(PYTHON_ARG) | ||
|
|
||
| install-dependencies: setup-venv ## Install all dependencies including extras | ||
| uv sync $(PYTHON_ARG) --all-extras --reinstall | ||
|
|
||
| install-hooks: ## Install pre-commit hooks | ||
| install: install-uv ## Install uv, dependencies, and pre-commit hooks | ||
| uv sync $(PYTHON_ARG) --all-extras | ||
| @# Reinstall pyiceberg if Cython extensions (.so) are missing after `make clean` (see #2869) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| @if ! find pyiceberg -name "*.so" 2>/dev/null | grep -q .; then \ | ||
|
Comment on lines
+70
to
+72
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. since
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes sense can't really think of a way around this until we deprecate cython (if...) |
||
| echo "Cython extensions not found, reinstalling pyiceberg..."; \ | ||
| uv sync $(PYTHON_ARG) --all-extras --reinstall-package pyiceberg; \ | ||
| fi | ||
| uv run $(PYTHON_ARG) prek install | ||
|
|
||
| install: install-uv install-dependencies install-hooks ## Install uv, dependencies, and pre-commit hooks | ||
|
|
||
| # =============== | ||
| # Code Validation | ||
| # =============== | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.