#!/bin/bash apt-get -y install libcairo2-dev gir1.2-gtksource-3.0 hdf5-tools apt-get -y install python3-dev python3-scipy python3-lmfit python3-matplotlib python3-tables python3-xdg python3-setuptools python3-sphinx-rtd-theme apt-get -y install debhelper dh-sequence-python3 lsb-release sphinx-common pybuild-plugin-pyproject python3-sphinxcontrib.bibtex DEBRELEASE=$(lsb_release -cs) case $DEBRELEASE in "trixie") echo "Trixie detected" # python3-setuptools needed, python >= 3.12 has no stdlib distutils module apt-get -y install libgirepository-2.0-dev ;; "bookworm") echo "Bookworm detected" apt-get -y install libgirepository1.0-dev ;; "bullseye") echo "Bullseye detected" wget https://archive.debian.org/debian/pool/main/d/dh-python/pybuild-plugin-pyproject_5.20230130~bpo11+1_all.deb dpkg -i pybuild-plugin-pyproject_5.20230130~bpo11+1_all.deb apt-get -y install libgirepository1.0-dev ;; *) echo "not implemented" ; exit 1 ;; esac