Skip to content
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

chore: Fix Makefile build commands #14806

Merged
merged 2 commits into from
Mar 1, 2024
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
26 changes: 13 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,55 +29,55 @@ requirements: .venv ## Install/refresh Python project requirements
.PHONY: build
build: .venv ## Compile and install Python Polars for development
@unset CONDA_PREFIX \
&& maturin develop -m py-polars/Cargo.toml \
&& $(VENV_BIN)/maturin develop -m py-polars/Cargo.toml \
$(FILTER_PIP_WARNINGS)

.PHONY: build-debug-opt
build-debug-opt: .venv ## Compile and install Python Polars with minimal optimizations turned on
@unset CONDA_PREFIX \
&& maturin develop -m py-polars/Cargo.toml --profile opt-dev \
&& $(VENV_BIN)/maturin develop -m py-polars/Cargo.toml --profile opt-dev \
$(FILTER_PIP_WARNINGS)

.PHONY: build-debug-opt-subset
build-debug-opt-subset: .venv ## Compile and install Python Polars with minimal optimizations turned on and no default features
@unset CONDA_PREFIX \
&& maturin develop -m py-polars/Cargo.toml --no-default-features --profile opt-dev \
&& $(VENV_BIN)/maturin develop -m py-polars/Cargo.toml --no-default-features --profile opt-dev \
$(FILTER_PIP_WARNINGS)

.PHONY: build-opt
build-opt: .venv ## Compile and install Python Polars with nearly full optimization on and debug assertions turned off, but with debug symbols on
@unset CONDA_PREFIX \
&& maturin develop -m py-polars/Cargo.toml --profile debug-release \
&& $(VENV_BIN)/maturin develop -m py-polars/Cargo.toml --profile debug-release \
$(FILTER_PIP_WARNINGS)

.PHONY: build-release
build-release: .venv ## Compile and install a faster Python Polars binary with full optimizations
@unset CONDA_PREFIX \
&& maturin develop -m py-polars/Cargo.toml --release \
&& $(VENV_BIN)/maturin develop -m py-polars/Cargo.toml --release \
$(FILTER_PIP_WARNINGS)

.PHONY: build-native
build-native: .venv ## Same as build, except with native CPU optimizations turned on
@unset CONDA_PREFIX \
&& maturin develop -m py-polars/Cargo.toml -- -C target-cpu=native \
@unset CONDA_PREFIX && RUSTFLAGS='-C target-cpu=native' \
$(VENV_BIN)/maturin develop -m py-polars/Cargo.toml \
$(FILTER_PIP_WARNINGS)

.PHONY: build-debug-opt-native
build-debug-opt-native: .venv ## Same as build-debug-opt, except with native CPU optimizations turned on
@unset CONDA_PREFIX \
&& maturin develop -m py-polars/Cargo.toml --profile opt-dev -- -C target-cpu=native \
@unset CONDA_PREFIX && RUSTFLAGS='-C target-cpu=native' \
$(VENV_BIN)/maturin develop -m py-polars/Cargo.toml --profile opt-dev \
$(FILTER_PIP_WARNINGS)

.PHONY: build-opt-native
build-opt-native: .venv ## Same as build-opt, except with native CPU optimizations turned on
@unset CONDA_PREFIX \
&& maturin develop -m py-polars/Cargo.toml --profile debug-release -- -C target-cpu=native \
@unset CONDA_PREFIX && RUSTFLAGS='-C target-cpu=native' \
$(VENV_BIN)/maturin develop -m py-polars/Cargo.toml --profile debug-release \
$(FILTER_PIP_WARNINGS)

.PHONY: build-release-native
build-release-native: .venv ## Same as build-release, except with native CPU optimizations turned on
@unset CONDA_PREFIX \
&& maturin develop -m py-polars/Cargo.toml --release -- -C target-cpu=native \
@unset CONDA_PREFIX && RUSTFLAGS='-C target-cpu=native' \
$(VENV_BIN)/maturin develop -m py-polars/Cargo.toml --release \
$(FILTER_PIP_WARNINGS)


Expand Down