-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
33 lines (25 loc) · 913 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env bash
export RUSTFLAGS="-C target-cpu=native"
GREEN=$'\e[0;32m'
NC=$'\e[0m'
cd bam_processor
cargo build --release
cd ../pair_merger
cargo build --release
cd ..
python3 -m venv python_env
source python_env/bin/activate
python3.12 -m pip install -r requirements.txt
deactivate
home_dir=$PWD
install_dir="$HOME/.cargo/bin"
if [ ! -d "$install_dir" ]; then
mkdir -p "$install_dir"
fi
echo "#!/usr/bin/env bash" > "$install_dir"/rumina
echo "source $home_dir/python_env/bin/activate" >> "$install_dir"/rumina
echo "python3.12 $home_dir/main.py \"\$@\"" >> "$install_dir"/rumina
echo "deactivate" >> "$install_dir"/rumina
chmod +x "$install_dir"/rumina
echo "-------------------------"
echo "${GREEN}RUMINA installed successfully!${NC}\nRUMINA installation dir: $home_dir\nTry running "rumina -h" to see the help screen.\nIf this doesn't work, make sure $HOME/.cargo/bin is in your '\$PATH'."