Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install config-visualizer-gui, move Python installation to basics #76

Merged
merged 7 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
MakisH marked this conversation as resolved.
Show resolved Hide resolved
# 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
MakisH marked this conversation as resolved.
Show resolved Hide resolved

# 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
Loading