pola-rs / polars

Dataframes powered by a multithreaded, vectorized query engine, written in Rust
https://docs.pola.rs
Other
29.25k stars 1.85k forks source link

Add instructions for building from source for non polars developers #17385

Open jmakov opened 2 months ago

jmakov commented 2 months ago

Description

Current instructions for building for max perf are only relevant for polars devs. For anybody else who wants to build for their local venv:

# install build dependencies
pip install maturin[patchelf]

cd py_polars

# activate your venv first, polars will be installed in it
export RUSTFLAGS='-C target-cpu=native'
maturin develop --release

Link

No response

orlp commented 2 months ago

I don't understand, how is this different than the instructions found here, using make build-release or make build-opt? https://github.com/pola-rs/polars?tab=readme-ov-file#python-compile-polars-from-source

I also don't understand what your question/problem is.

jmakov commented 2 months ago

Using make build-release installs polars in a separate venv in polars_root/.venv. But I have already my own (conda) venv and want to install it there.