post_install() {
  set -e
  cd /usr/share/cai
  python -m venv venv
  source venv/bin/activate &&
    pip install --isolated --root=/usr/share/cai --prefix=venv .
}

post_upgrade() {
  post_install "$@"
}

post_remove() {
  # /usr/share/cai/venv
  rm -r /usr/share/cai
}

