-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
39b2808
commit 5c6096a
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## Setup Python Environment | ||
```bash | ||
python -m venv .env | ||
. .env/Scripts/activate # Using Git Bash on Windows | ||
pip install maturin | ||
``` | ||
|
||
## Run (Development) | ||
```bash | ||
# Adds grim api as python module to current env | ||
maturin develop -m ./core/grim/Cargo.toml --all-features | ||
``` | ||
|
||
## Build and Install | ||
```bash | ||
# Build grim api as python module in target/wheels | ||
maturin build -m ./core/grim/Cargo.toml --all-features -r | ||
|
||
# Use '--force-reinstall' to override pre-existing install | ||
# Note: File name may be different depending on build target | ||
pip install ./target/wheels/grim-0.1.0-cp310-none-win_amd64.whl --force-reinstall | ||
``` |