Skip to content

Commit

Permalink
python polars 64 release (#3059)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Apr 4, 2022
1 parent f411d5b commit 9d86242
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
11 changes: 11 additions & 0 deletions .github/deploy_manylinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ cp README.md py-polars/README.md
cd py-polars
rustup override set nightly-2022-03-23
export RUSTFLAGS='-C target-feature=+fxsr,+sse,+sse2,+sse3,+ssse3,+sse4.1+sse4.2,+popcnt,+avx,+fma'

# first the default release
maturin publish \
--skip-existing \
--username ritchie46

# now compile polars with bigidx feature
sed -i 's/name = "polars"/name = "polars-64"/' pyproject.toml
# a brittle hack to insert the 'bigidx' feature
sed '/s/"dynamic_groupby",/"dynamic_groupby",\n"bigidx",/' Cargo.toml

maturin publish \
--skip-existing \
--username ritchie46
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,11 @@ See the results in [h2oai's db-benchmark](https://h2oai.github.io/db-benchmark/)

Install the latest polars version with:

```
$ pip3 install polars
```

Update existing polars installation to the lastest version with:

```
$ pip3 install -U polars
```

Releases happen quite often (weekly / every few days) at the moment, so updating polars regularily to get the latest bugfixes / features might not be a bad idea.
Releases happen quite often (weekly / every few days) at the moment, so updating polars regularly to get the latest bugfixes / features might not be a bad idea.


## Rust setup
Expand Down Expand Up @@ -180,6 +174,13 @@ Arrow2 also has a more granular code base, helping to reduce the compiler bloat.
## Use custom Rust function in python?
See [this example](./examples/python_rust_compiled_function).

# Going big...
Do you expect more than `32^2` ~4,2 billion rows? Compile polars with the `bigidx` feature flag.

Or for python users install `$ pip install -U polars-64`.

Don't use this unless you hit the row boundary as the default polars is faster and consumes less memory.

## Acknowledgements

Development of Polars is proudly powered by
Expand Down

0 comments on commit 9d86242

Please sign in to comment.