Skip to content

Commit

Permalink
Introduce install-release and install-release-watched Make targets
Browse files Browse the repository at this point in the history
  • Loading branch information
umut-sahin committed Sep 23, 2024
1 parent 122f6c6 commit 0704b25
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ panic = 'abort'

[package.metadata.scripts]
install = "pip install -e ."
install-release = "pip install ."
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ install:
install-watched:
cargo watch -x 'run-script install'

# Build the latest changes in the rust bindings in release mode and install it to the active environment.
install-release:
pip install .

# Build the latest changes in the rust bindings in release mode and install it to the active environment automatically when rust crate changes.
install-release-watched:
cargo watch -x 'run-script install-release'

# Run pre-commit checks.
pcc:
pre-commit run --all-files
Expand Down

0 comments on commit 0704b25

Please sign in to comment.