Skip to content

Commit

Permalink
Use setup.py directly for install targets for faster installation
Browse files Browse the repository at this point in the history
  • Loading branch information
umut-sahin committed Sep 24, 2024
1 parent 358ab52 commit c7d552d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ strip = true
panic = 'abort'

[package.metadata.scripts]
install = "pip install -e . --no-deps"
install-release = "pip install . --no-deps"
install = "make install"
install-release = "make install-release"
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ setup:

# Build the latest changes in the rust bindings and install it to the active environment.
install:
pip install -e . --no-deps
python setup.py build_rust --inplace

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

# Build the latest changes in the rust bindings in release mode and install it to the active environment.
install-release:
pip install . --no-deps
python setup.py build_rust --inplace --release

# 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:
Expand Down

0 comments on commit c7d552d

Please sign in to comment.