From 10eb27d3eae0bc3818a72efc3c80d2d975b73063 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Sat, 6 May 2023 16:13:28 +0200 Subject: [PATCH] pip install notice --- README.md | 1 + src/modular_exponentiation.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index e8b4b8f..1edddd8 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ It boils down to the following steps: - Create a virtual environment in the root of the repository. I used `python -m venv .venv` for this. Activate the venv. - Install maturin `pip install maturin --user` - compile the plexcryptool python module using `maturin develop -r` or `maturin build --release` +- install the module with pip: `pip install target/wheels/plexcryptool-X.X.X-cp311-cp311-manylinux_2_34_x86_64.whl` - compile the plexcryptool executable using `cargo run --release` or install it to your system with `cargo install --path .` Thats it! diff --git a/src/modular_exponentiation.rs b/src/modular_exponentiation.rs index 320db5b..19f76cb 100644 --- a/src/modular_exponentiation.rs +++ b/src/modular_exponentiation.rs @@ -49,6 +49,7 @@ pub fn modular_exponentiation( } #[pyfunction] +#[pyo3(name="modular_exponentiation")] pub fn py_modular_exponentiation( base: i128, orig_exp: i128,