Skip to content

Commit

Permalink
add missing makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Aug 8, 2024
1 parent 1e4e56b commit 26c81c1
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions example/extend_polars_python_dispatch/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

SHELL=/bin/bash

venv: ## Set up virtual environment
python3 -m venv venv
venv/bin/pip install -r requirements.txt

install: venv
unset CONDA_PREFIX && \
source venv/bin/activate && maturin develop -m extend_polars/Cargo.toml

install-release: venv
unset CONDA_PREFIX && \
source venv/bin/activate && maturin develop --release -m extend_polars/Cargo.toml

clean:
-@rm -r venv
-@cd extend_polars && cargo clean


run: install
source venv/bin/activate && python run.py

run-release: install-release
source venv/bin/activate && python run.py

0 comments on commit 26c81c1

Please sign in to comment.