Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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 Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Vagrant.configure("2") do |config|
# config.vm.provision "shell", path: "provisioning/install-aste.sh", privileged: false

# Install additional packages for training
config.vm.provision "shell", path: "provisioning/install-training-python.sh", privileged: false
config.vm.provision "shell", path: "provisioning/install-training-fsi.sh", privileged: false

# Install further packages from the preCICE Distribution
Expand Down
3 changes: 0 additions & 3 deletions provisioning/install-precice.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ source ~/python-venvs/pyprecice/bin/activate

python -m pip install pyprecice

# Additional python packages -> Should go into tutorials venvs
# pip3 install --user pandas matplotlib polars # Needed for the post-processing scripts

deactivate

# Get the Python solverdummy into the examples
Expand Down
3 changes: 1 addition & 2 deletions provisioning/install-training-fsi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
set -ex

# Additional packages for the FSI training module
python -m venv ~/python-venvs/training-fsi
# shellcheck disable=SC1090 # We don't need to lint this external script
source ~/python-venvs/training-fsi/bin/activate
source ~/python-venvs/pyprecice/bin/activate
python -m pip install pyfoam
deactivate
pipx install ccx2paraview
Expand Down
8 changes: 8 additions & 0 deletions provisioning/install-training-python.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -ex

# shellcheck disable=SC1090 # We don't need to lint this external script
source ~/python-venvs/pyprecice/bin/activate
pip3 install --user matplotlib pandas polars
pip3 install --user nutils
deactivate
6 changes: 5 additions & 1 deletion provisioning/post-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ chmod +x ~/Desktop/terminator.desktop
echo "gsettings set org.gnome.desktop.screensaver lock-enabled false"
} >> ~/.bashrc

echo "source ${HOME}/.alias" >>~/.bashrc
# Add aliases and enable the python venv by default
{
echo "source ${HOME}/.alias"
echo "source ${HOME}/python-venvs/pyprecice/bin/activate"
} >> ~/.bashrc