Skip to content

Commit

Permalink
doc: Installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
mwiewior committed Dec 18, 2024
1 parent 0d440a4 commit bbb8664
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
paths-ignore:
- 'docs/**'
- 'benchmark/**'
- 'mkdocs.yml'
pull_request:
workflow_dispatch:

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/performance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TBD
15 changes: 15 additions & 0 deletions docs/quickstart.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
[polars-bio](https://pypi.org/project/polars-bio/) is available on PyPI and can be installed with pip:
```shell
pip install polars-bio
```
There are binary versions for Linux (x86_64), MacOS (x86_64 and arm64) and Windows (x86_64).
In case of other platforms, you can build polars-bio from source with [maturin](https://github.com/PyO3/maturin):
```shell
RUSTFLAGS="-Ctarget-cpu=native" maturin build --release -m Cargo.toml
```
and you should see the following output:
```shell
Compiling polars_bio v0.2.11 (/Users/mwiewior/research/git/polars-bio)
Finished `release` profile [optimized] target(s) in 1m 25s
📦 Built wheel for abi3 Python ≥ 3.8 to /Users/mwiewior/research/git/polars-bio/target/wheels/polars_bio-0.2.11-cp38-abi3-macosx_11_0_arm64.whl

```
!!! note
Rust compiler and Cargo are required to build the package from source. [rustup](https://rustup.rs/) is the recommended way to install Rust.
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ nav:
- 🏃🏼‍♂️ Quick start: quickstart.md
- 🔨Features: features.md
- 📚 Tutorial: notebooks/tutorial.ipynb
- 🚀 Performance: performance.md
- ⚙️ API reference: api.md
- Quick start: quickstart.md
- Features: features.md
- Tutorial: notebooks/tutorial.ipynb
- Performance: performance.md
- API reference: api.md

plugins:
Expand Down

0 comments on commit bbb8664

Please sign in to comment.