diff --git a/build-scripts/ubuntu-2204/postinst b/build-scripts/ubuntu-2204/postinst new file mode 100644 index 000000000..31b514505 --- /dev/null +++ b/build-scripts/ubuntu-2204/postinst @@ -0,0 +1,8 @@ +#!/bin/bash + +# Automatically added from template: +if which py3compile >/dev/null 2>&1; then + py3compile -O -p {package_name} /usr/local/lib/python3.8/dist-packages/ +fi + +# End automatically added section diff --git a/build-scripts/ubuntu-2204/prerm b/build-scripts/ubuntu-2204/prerm new file mode 100644 index 000000000..40af9b22a --- /dev/null +++ b/build-scripts/ubuntu-2204/prerm @@ -0,0 +1,7 @@ +#!/bin/bash + +# Automatically added from template: + +dpkg -L {package_name} | perl -ne 's,/([^/]*)\.py$,/__pycache__/\1.*, or next; unlink $_ or die $! foreach glob($_)' + +# End automatically added section \ No newline at end of file