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

post_upgrade() {
  post_install "$@"
}

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

