post_install() {
  set -e
  cd /usr/share/sparrow-wifi
  python -m venv venv
  source venv/bin/activate &&
    pip install --isolated --root="/usr/share/sparrow-wifi" --prefix='venv' \
      -r requirements.txt
}

post_upgrade() {
  post_install "$@"
}
