raptorq/python
Felix Schorer 78ed43ac72 feat: Add CPython wrapper (#33)
* Add CPython wrapper

* Add CPython wrapper to build pipeline

* Don't use Travis CI matrix expansion

* Install maturin and add cache

* Install Python

* Install fix incorrect package name 'pip3'

* Update package list

* Split build in two jobs

* Don't cache as installing lichking will error otherwise

* Don't lint on nightly

* Add Python tests

* Add venv

* Fix execution order

* Run linter

* Run linter
2020-01-13 19:58:01 -08:00
..
.cargo feat: Add CPython wrapper (#33) 2020-01-13 19:58:01 -08:00
src feat: Add CPython wrapper (#33) 2020-01-13 19:58:01 -08:00
test feat: Add CPython wrapper (#33) 2020-01-13 19:58:01 -08:00
.gitignore feat: Add CPython wrapper (#33) 2020-01-13 19:58:01 -08:00
Cargo.lock feat: Add CPython wrapper (#33) 2020-01-13 19:58:01 -08:00
Cargo.toml feat: Add CPython wrapper (#33) 2020-01-13 19:58:01 -08:00
Makefile feat: Add CPython wrapper (#33) 2020-01-13 19:58:01 -08:00
pyproject.toml feat: Add CPython wrapper (#33) 2020-01-13 19:58:01 -08:00
README.md feat: Add CPython wrapper (#33) 2020-01-13 19:58:01 -08:00

The Python bindings are generated using pyo3. Rust 1.37.0-nightly or higher is required for building pyo3 projects.

$ rustup install nightly
$ rustup override set nightly

Some operating systems require additional packages to be installed.

$ sudo apt install python3-dev

maturin is recommended for building this crate.

$ pip install maturin
$ maturin build

Alternatively, refer to the Building and Distribution section in the pyo3 user guide.