#!/bin/sh
set -e

# Snippet source: debputy/0.1.7.5 (pycompile-files)
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ]; then
  if command -v py3compile >/dev/null 2>&1; then
      py3compile -p dh-debputy /usr/share/dh-debputy
  fi
  if command -v pypy3compile >/dev/null 2>&1; then
      pypy3compile -p dh-debputy /usr/share/dh-debputy || true
  fi
fi

