-
Notifications
You must be signed in to change notification settings - Fork 0
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
c4d428a
commit fe5a793
Showing
5 changed files
with
46 additions
and
59 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
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
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,20 @@ | ||
#!/bin/bash | ||
|
||
function is_installed() { | ||
pip show "$1" &> /dev/null | ||
return $? | ||
} | ||
|
||
# Check if maturin is installed. | ||
if ! command -v maturin &> /dev/null; then | ||
echo "Maturin is not installed. Please install maturin first." | ||
exit 1 | ||
fi | ||
|
||
# Check if the module python_wrapper exists. | ||
if ! is_installed "python_wrapper"; then | ||
echo "Module python_wrapper not found. Running maturin develop..." | ||
maturin develop -m python_wrapper/Cargo.toml | ||
else | ||
echo "Module python_wrapper is already installed." | ||
fi |
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
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,19 @@ | ||
#!/bin/bash | ||
|
||
function command_exists() { | ||
command -v "$1" &> /dev/null | ||
return $? | ||
} | ||
|
||
# Check if Rust is already installed. | ||
if command_exists rustc; then | ||
echo "Rust is already installed." | ||
else | ||
echo "Rust is not installed. Installing Rust..." | ||
|
||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
|
||
. "$HOME/.cargo/env" | ||
|
||
echo "Rust installation completed." | ||
fi |