-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInstall-OrangeDataMining.bash
More file actions
executable file
·37 lines (31 loc) · 1.01 KB
/
Install-OrangeDataMining.bash
File metadata and controls
executable file
·37 lines (31 loc) · 1.01 KB
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
34
35
36
37
#!/bin/bash
# Installing library Python.h
if ! dnf list --installed python3-devel > /dev/null; then
sudo dnf install --assumeyes python3-devel
fi
# Installing Python Pip
if ! [ "$(command -v pip)" ]; then
sudo dnf install --assumeyes python3-pip
fi
# Installing orange
if ! [ "$(command -v orange-canvas)" ]; then
sudo pip install orange3
fi
# Getting orange installation dir
path_orange_installation_dir="$(pip show orange3 | grep "Location: ")"
path_orange_installation_dir="${path_orange_installation_dir/Location: /""}"
path_orange_installation_dir="${path_orange_installation_dir}/Orange"
# Getting orange icon
path_orange_icon="${path_orange_installation_dir}/canvas/icons/orange-canvas.svg"
# Creating shortcut
path_shortcut="${HOME}/.local/share/applications/Orange.desktop"
{
echo "[Desktop Entry]"
echo "Version=1.5"
echo "Name=Orange"
echo "Type=Application"
echo "Exec=orange-canvas"
echo "Icon=$path_orange_icon"
echo "StartupNotify=true"
echo "Categories=Education;Science;"
} >"$path_shortcut"