Skip to content

Commit

Permalink
Install config-visualizer-gui, move Python installation to basics
Browse files Browse the repository at this point in the history
  • Loading branch information
MakisH committed Apr 16, 2024
1 parent d13fbaf commit 65f4522
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
1 change: 1 addition & 0 deletions provisioning/install-basics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ sudo apt-get upgrade -qy
# Install the Xfce desktop environment and basic applications
sudo apt-get install -y xubuntu-core^
sudo apt-get install -y thunar xfce4-terminal terminator bash-completion tree atril firefox firefox-locale-en baobab catfish
sudo apt-get install -y python3-dev pipx python-is-python3

# Setup auto-login for the graphical session
# Disabled due to https://github.com/precice/vm/issues/40
Expand Down
19 changes: 7 additions & 12 deletions provisioning/install-config-visualizer.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
#!/usr/bin/env bash
set -ex

# Get the config-visualizer from GitHub
if [ ! -d "config-visualizer/" ]; then
git clone --depth=1 --branch master https://github.com/precice/config-visualizer.git
fi
pip3 install --user -e config-visualizer
# Install CLI dependencies
sudo apt-get install -y graphviz
# Install GUI depedencies
sudo apt-get install -y libcairo2-dev libgirepository1.0-dev gcc libcairo2-dev pkg-config gir1.2-gtk-4.0

# Get the config-visualizer from PIP
pipx install precice-config-visualizer precice-config-visualizer-gui

# Add the config-visualizer to PATH
echo "export PATH=\"\${HOME}/config-visualizer/bin:\${PATH}\"" >>~/.bashrc

# By default, there is no `python` executable, there is only `python3`,
# which causes issues to the config-visualizer
sudo apt-get install -y python-is-python3

# Install graphviz, which provides dot, an almost required package to make this useful
sudo apt-get install -y graphviz

0 comments on commit 65f4522

Please sign in to comment.