Wiring for Python
-
Project Setup
git clone [email protected]:ontodev/wiring.py.gitcd wiring.pygit clone [email protected]:ontodev/wiring.rs.gitmv python_module.rs wiring.rs/src/mv Cargo.toml wiring.rs/cd wiring.rs- add the line
mod python_module;to the end of filesrc/lib.rs
-
Installing Maturin
python3 -m venv .venvsource .venv/bin/activatepip install -U pip maturin
-
Build
maturin developfor local installationmaturin buildfor creating a wheel
-
Test
cd ..python demo.py