diff --git a/community/accerciser/APKBUILD b/community/accerciser/APKBUILD
index bdc182cb3053048200cbdf0c02eae9cfe0d4b4b9..63153d517474f93d4cfe24a22b7535468e904032 100644
--- a/community/accerciser/APKBUILD
+++ b/community/accerciser/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Rasmus Thomsen <oss@cogitri.dev>
 pkgname=accerciser
 pkgver=3.40.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Interactive Python accessibility explorer"
 url="https://wiki.gnome.org/Apps/Accerciser"
 arch="noarch"
@@ -28,7 +28,7 @@ makedepends="
 	yelp-tools
 	"
 options="!check" # no tests
-subpackages="$pkgname-lang $pkgname-doc"
+subpackages="$pkgname-lang $pkgname-doc $pkgname-pyc"
 source="https://gitlab.gnome.org/GNOME/accerciser/-/archive/$pkgver/accerciser-$pkgver.tar.gz"
 
 prepare() {
diff --git a/community/ansible-core/APKBUILD b/community/ansible-core/APKBUILD
index fabc0bc03e0b35a2dbca6b309d7e56425db9711f..a8c91209f4e988d73241678e60972e97ad3b6a14 100644
--- a/community/ansible-core/APKBUILD
+++ b/community/ansible-core/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Sean McAvoy <seanmcavoy@gmail.com>
 pkgname=ansible-core
 pkgver=2.14.4
-pkgrel=0
+pkgrel=1
 pkgdesc="core components of ansible: A configuration-management, deployment, task-execution, and multinode orchestration framework"
 url="https://ansible.com"
 options="!check" # for now
@@ -18,7 +18,7 @@ depends="
 	python3
 	"
 makedepends="py3-setuptools"
-subpackages="$pkgname-doc"
+subpackages="$pkgname-doc $pkgname-pyc"
 source="https://pypi.python.org/packages/source/a/ansible-core/ansible-core-$pkgver.tar.gz
 	resolvelib.patch
 	"
diff --git a/community/ansible-lint/APKBUILD b/community/ansible-lint/APKBUILD
index bcc5fc5e6828e5e8105bc00545b1582077c1403a..19fa7bc3d9075d54589128ee93fba5538e8c32ab 100644
--- a/community/ansible-lint/APKBUILD
+++ b/community/ansible-lint/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
 pkgname=ansible-lint
 pkgver=6.14.6
-pkgrel=0
+pkgrel=1
 pkgdesc="check ansible playbooks"
 url="https://github.com/ansible/ansible-lint"
 arch="noarch"
@@ -38,6 +38,7 @@ checkdepends="
 	py3-pytest-xdist
 	yamllint
 	"
+subpackages="$pkgname-pyc"
 source="ansible-lint-$pkgver.tar.gz::https://github.com/ansible-community/ansible-lint/archive/refs/tags/v$pkgver/ansible-lint-v$pkgver.tar.gz"
 provides="py3-ansible-lint=$pkgver-r$pkgrel" # for backward compatibility
 replaces="py3-ansible-lint" # for backward compatibility
diff --git a/community/ansible/APKBUILD b/community/ansible/APKBUILD
index c311cb0b617300422bcaccd8b5fe267b9ce4a18c..2870b1968d2656c365d40a5b8efefade3edf6bfa 100644
--- a/community/ansible/APKBUILD
+++ b/community/ansible/APKBUILD
@@ -4,7 +4,7 @@
 # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
 pkgname=ansible
 pkgver=7.4.0
-pkgrel=0
+pkgrel=1
 pkgdesc="core components for Ansible"
 url="https://ansible.com/"
 options="!check" # TODO: enable tests
@@ -16,6 +16,7 @@ makedepends="
 	py3-setuptools
 	py3-wheel
 	"
+subpackages="$pkgname-pyc"
 source="https://pypi.python.org/packages/source/a/ansible/ansible-$pkgver.tar.gz"
 
 # secfixes:
diff --git a/community/apenwarr-redo/APKBUILD b/community/apenwarr-redo/APKBUILD
index adb3929bbc50e6c2a868dbf12ed5179ff088214d..6b6cf47b4f2d2911392cc11ab8538bff9463ca7d 100644
--- a/community/apenwarr-redo/APKBUILD
+++ b/community/apenwarr-redo/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
 pkgname=apenwarr-redo
 pkgver=0.42d
-pkgrel=1
+pkgrel=2
 pkgdesc="Smaller, easier, more powerful, and more reliable than make"
 url="https://redo.readthedocs.io/en/latest/"
 arch="noarch"
@@ -10,7 +10,7 @@ license="Apache-2.0"
 depends="python3"
 makedepends="perl py3-beautifulsoup4 py3-markdown"
 checkdepends="cpio"
-subpackages="$pkgname-bash-completion $pkgname-doc"
+subpackages="$pkgname-bash-completion $pkgname-doc $pkgname-pyc"
 source="https://github.com/apenwarr/redo/archive/redo-$pkgver.tar.gz
 	fix-env-python.patch
 	"
@@ -50,6 +50,14 @@ cleanup_srcdir() {
 	default_cleanup_srcdir
 }
 
+pyc() {
+	default_pyc
+
+	amove \
+		usr/lib/redo/__pycache__ \
+		usr/lib/redo/version/__pycache__
+}
+
 sha512sums="
 2749a1a1046f8edd63c4b4e2b0f4d95988dfcf8c776b264007914e583fc21ff51447be34ffc2c136c343ace8c38147d6a43c0c0dd01a681b6283a38d5d8f3fb7  redo-0.42d.tar.gz
 7d8be0b94999c54d6d1d47300189c4979294cf3d9ddd30f2f3c95b12f16e7dc180ad7c518bcf1dd91f3ddace8e769880ac30bf659f4c9973872cb75bc15d89c7  fix-env-python.patch
diff --git a/community/arandr/APKBUILD b/community/arandr/APKBUILD
index 96fbea1834310fc3a1159ce9a94e1b4ba886ba63..196170506e6c4e6b94f426ccd17c13c4e4d10d60 100644
--- a/community/arandr/APKBUILD
+++ b/community/arandr/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
 pkgname=arandr
 pkgver=0.1.11
-pkgrel=0
+pkgrel=1
 pkgdesc="ARandR provides a simple visual front end for XRandR"
 options="!check" # No testsuite
 url="http://christian.amsuess.com/tools/arandr/"
@@ -21,6 +21,7 @@ makedepends="
 subpackages="
 	$pkgname-doc
 	$pkgname-lang
+	$pkgname-pyc
 	"
 source="
 	http://christian.amsuess.com/tools/arandr/files/$pkgname-$pkgver.tar.gz
diff --git a/community/asciinema/APKBUILD b/community/asciinema/APKBUILD
index 89bcafa67ef1e93dc0c105801de371193b812354..c179f58ea2cb6dc2756006df8ea9ded3d7689291 100644
--- a/community/asciinema/APKBUILD
+++ b/community/asciinema/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
 pkgname=asciinema
 pkgver=2.2.0
-pkgrel=2
+pkgrel=3
 pkgdesc="Command line recorder for the asciinema.org service"
 url="https://github.com/asciinema/asciinema"
 arch="all"
@@ -10,7 +10,7 @@ license="GPL-3.0-or-later"
 depends="python3 ncurses"
 makedepends="py3-setuptools py3-wheel py3-gpep517 py3-installer"
 checkdepends="py3-pytest"
-subpackages="$pkgname-doc"
+subpackages="$pkgname-doc $pkgname-pyc"
 source="$pkgname-$pkgver.tar.gz::https://github.com/asciinema/asciinema/archive/v$pkgver.tar.gz"
 
 build() {
diff --git a/community/awake/APKBUILD b/community/awake/APKBUILD
index 6374a632a18c056e181f88e101503308b97a1a38..e15d5b81d30768482a3e8f83ebb97e5a504b6a4c 100644
--- a/community/awake/APKBUILD
+++ b/community/awake/APKBUILD
@@ -2,14 +2,14 @@
 # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
 pkgname=awake
 pkgver=1.0
-pkgrel=8
+pkgrel=9
 pkgdesc="python command and library to 'wake on lan' a remote host"
 url="https://github.com/cyraxjoe/awake"
 arch="noarch"
 license="GPL-3.0"
 depends="py3-awake"
 makedepends="python3-dev"
-subpackages="py3-$pkgname:py3 $pkgname-doc"
+subpackages="py3-$pkgname-pyc py3-$pkgname:py3 $pkgname-doc"
 source="https://files.pythonhosted.org/packages/source/a/awake/awake-$pkgver.tar.gz"
 
 build() {
diff --git a/community/aws-cli/APKBUILD b/community/aws-cli/APKBUILD
index 906471c8c217cb997d1652b52f50eafc54246d8b..460098d4c12a0a18084b32a02f5f221edadc1bc9 100644
--- a/community/aws-cli/APKBUILD
+++ b/community/aws-cli/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: psykose <alice@ayaya.dev>
 pkgname=aws-cli
 pkgver=2.11.14
-pkgrel=0
+pkgrel=1
 pkgdesc="Universal Command Line Interface for Amazon Web Services (v2)"
 url="https://github.com/aws/aws-cli"
 # s390x: py3-awscrt doesn't support big-endian
@@ -37,6 +37,7 @@ checkdepends="
 	"
 subpackages="
 	$pkgname-doc
+	$pkgname-pyc
 	$pkgname-zsh-completion:zshcomp
 	$pkgname-bash-completion:bashcomp
 	"
diff --git a/community/babeltrace/APKBUILD b/community/babeltrace/APKBUILD
index 9c211fcea3af5759b05a88511e4ab881da5b7b4d..5ab094bff8760b0dec5384f5abf32b21a6233a41 100644
--- a/community/babeltrace/APKBUILD
+++ b/community/babeltrace/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Michael Jeanson <mjeanson@efficios.com>
 pkgname=babeltrace
 pkgver=2.0.4
-pkgrel=3
+pkgrel=4
 pkgdesc="Trace converter and read/write library"
 url="https://www.efficios.com/babeltrace"
 arch="all"
@@ -10,7 +10,7 @@ license="MIT"
 depends_dev="glib-dev"
 makedepends="$depends_dev python3-dev swig"
 checkdepends="bash grep"  # test cases use both Bash and grep tools
-subpackages="$pkgname-dev $pkgname-doc py3-babeltrace:py3bindings"
+subpackages="$pkgname-dev $pkgname-doc py3-$pkgname-pyc py3-babeltrace:py3bindings"
 source="https://www.efficios.com/files/babeltrace/babeltrace2-$pkgver.tar.bz2
 	gcc12.patch
 	"
diff --git a/community/bcc/APKBUILD b/community/bcc/APKBUILD
index 2452b55df5f011c9acd9aedca91edac7d90b85da..37e29696c0f73c5ebce40b976f02c852e452fc81 100644
--- a/community/bcc/APKBUILD
+++ b/community/bcc/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Adam Jensen <adam@acj.sh>
 pkgname=bcc
 pkgver=0.27.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A toolkit for creating efficient kernel tracing and manipulation programs"
 url="https://github.com/iovisor/bcc/"
 # s390x build fails
@@ -30,6 +30,7 @@ subpackages="
 	$pkgname-dev
 	$pkgname-doc
 	$pkgname-tools
+	py3-$pkgname-pyc
 	py3-$pkgname:_py:noarch
 	"
 source="$pkgname-$pkgver.tar.gz::https://github.com/iovisor/bcc/archive/v$pkgver.tar.gz"
diff --git a/community/beancount/APKBUILD b/community/beancount/APKBUILD
index f2047fa3fc5d1d0d923611a2c74714e72264fe39..f2309977396a72ede8730c27066457c8507216d9 100644
--- a/community/beancount/APKBUILD
+++ b/community/beancount/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
 pkgname=beancount
 pkgver=2.3.5
-pkgrel=5
+pkgrel=6
 pkgdesc="Double-Entry Accounting from Text Files"
 url="https://beancount.github.io/"
 arch="all !ppc64le"  # limited by py3-grpcio
@@ -11,6 +11,7 @@ depends="python3 py3-dateutil py3-ply py3-bottle py3-lxml py3-magic
 	py3-beautifulsoup4 py3-requests py3-chardet py3-pytest
 	py3-google-api-python-client"
 makedepends="python3-dev py3-setuptools"
+subpackages="$pkgname-pyc"
 source="$pkgname-$pkgver-meow.tar.gz::https://github.com/beancount/beancount/archive/$pkgver.tar.gz"
 options="!check"
 
diff --git a/community/beets/APKBUILD b/community/beets/APKBUILD
index 3dcadb42c2da59d240ecd52f4de7d83f8df51df5..68f8ba3d0eeb063db750c357988abf1b4dcef7cf 100644
--- a/community/beets/APKBUILD
+++ b/community/beets/APKBUILD
@@ -3,13 +3,13 @@
 # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
 pkgname=beets
 pkgver=1.6.0
-pkgrel=4
+pkgrel=5
 pkgdesc="Music library manager and MusicBrainz tagger"
 options="!check" # Requires unpackaged dependencies
 url="https://beets.io"
 arch="noarch"
 license="MIT"
-subpackages="$pkgname-doc $pkgname-zsh-completion"
+subpackages="$pkgname-doc $pkgname-zsh-completion $pkgname-pyc"
 depends="
 	py3-confuse
 	py3-jellyfish
diff --git a/community/black/APKBUILD b/community/black/APKBUILD
index 1031226f636a05ff135fde70a7c847b1360f6110..5eb1abfb031c76a2b028888f2b5f5dbd353c16d8 100644
--- a/community/black/APKBUILD
+++ b/community/black/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Michał Polański <michal@polanski.me>
 pkgname=black
 pkgver=23.3.0
-pkgrel=0
+pkgrel=1
 pkgdesc="The uncompromising Python code formatter"
 url="https://github.com/psf/black"
 license="MIT"
@@ -11,6 +11,7 @@ depends="python3 py3-click py3-mypy-extensions py3-packaging py3-pathspec py3-pl
 makedepends="bash py3-gpep517 py3-hatchling py3-hatch-vcs py3-wheel"
 checkdepends="py3-pytest py3-parameterized py3-aiohttp"
 subpackages="
+	$pkgname-pyc
 	$pkgname-bash-completion
 	$pkgname-fish-completion
 	$pkgname-zsh-completion
diff --git a/community/blueman/APKBUILD b/community/blueman/APKBUILD
index 4cb4f395b84c7ce90271f8456ae9422b52efb984..f52e607852a3d581d7eae1e4c2a3b5ac1871231d 100644
--- a/community/blueman/APKBUILD
+++ b/community/blueman/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: knuxify <knuxify@gmail.com>
 pkgname=blueman
 pkgver=2.3.5
-pkgrel=1
+pkgrel=2
 pkgdesc="GTK+ Bluetooth Manager"
 url="https://github.com/blueman-project/blueman"
 arch="all"
@@ -18,7 +18,7 @@ makedepends="
 	py3-gobject3-dev
 	"
 checkdepends="networkmanager libpulse-mainloop-glib"
-subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-pyc"
 source="https://github.com/blueman-project/blueman/releases/download/$pkgver/blueman-$pkgver.tar.xz
 	dont-rerun-plugin-tests.patch"
 
diff --git a/community/blueprint-compiler/APKBUILD b/community/blueprint-compiler/APKBUILD
index 65bcc126434b93225903f1d1f795a124d406988e..c6f66bb9cb0df9a3f842271d7175cebd3124d68d 100644
--- a/community/blueprint-compiler/APKBUILD
+++ b/community/blueprint-compiler/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Newbyte <newbie13xd@gmail.com>
 pkgname=blueprint-compiler
 pkgver=0.6.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Markup language for GTK user interfaces"
 url="https://jwestman.pages.gitlab.gnome.org/blueprint-compiler"
 arch="noarch !s390x"
@@ -16,7 +16,7 @@ depends="
 makedepends="meson"
 checkdepends="gtk4.0-dev"
 depends_dev="blueprint-compiler"
-subpackages="$pkgname-dev"
+subpackages="$pkgname-dev $pkgname-pyc"
 source="https://gitlab.gnome.org/jwestman/blueprint-compiler/-/archive/v$pkgver/blueprint-compiler-v$pkgver.tar.gz"
 builddir="$srcdir/$pkgname-v$pkgver"
 
diff --git a/community/borg-space/APKBUILD b/community/borg-space/APKBUILD
index cf72e19104232f7f81660f1e9a19b65a1f9f95eb..f73fafd73063d6e386607cd459eaf8a57672a410 100644
--- a/community/borg-space/APKBUILD
+++ b/community/borg-space/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Andy Hawkins <andy@gently.org.uk>
 pkgname=borg-space
 pkgver=1.0
-pkgrel=0
+pkgrel=1
 pkgdesc="Report and track the size of your Borg repositories"
 url="https://pypi.org/project/borg-space/"
 license="GPL-3.0-or-later"
@@ -25,6 +25,7 @@ makedepends="
 	py3-gpep517
 	py3-installer
 "
+subpackages="$pkgname-pyc"
 source="https://github.com/KenKundert/borg-space/archive/v$pkgver/borg-space-$pkgver.tar.gz"
 options="!check" # no test suite
 
diff --git a/community/borgbackup/APKBUILD b/community/borgbackup/APKBUILD
index 360b49a2b32066d4cf2d934133ec758908ede15d..8dd9b973b904b135435523aed1ac7702fb2346e9 100644
--- a/community/borgbackup/APKBUILD
+++ b/community/borgbackup/APKBUILD
@@ -4,7 +4,7 @@
 pkgname=borgbackup
 _pkgname=borg
 pkgver=1.2.4
-pkgrel=3
+pkgrel=4
 pkgdesc="Deduplicating backup program"
 url="https://www.borgbackup.org/"
 # armhf: Bus error in tests
@@ -34,6 +34,7 @@ checkdepends="
 	py3-pytest-benchmark
 	"
 subpackages="
+	$pkgname-pyc
 	$pkgname-doc
 	$pkgname-bash-completion
 	$pkgname-fish-completion
diff --git a/community/borgmatic/APKBUILD b/community/borgmatic/APKBUILD
index b44bea45853d3364b98dade32b73a56b3cd5eebb..2f83dcc08ab07ed695b442694f5c419449dc8c30 100644
--- a/community/borgmatic/APKBUILD
+++ b/community/borgmatic/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Michał Polański <michal@polanski.me>
 pkgname=borgmatic
 pkgver=1.7.12
-pkgrel=1
+pkgrel=2
 pkgdesc="Simple, configuration-driven backup software for servers and workstations"
 url="https://torsion.org/borgmatic/"
 license="GPL-3.0-or-later"
@@ -28,7 +28,7 @@ checkdepends="
 	py3-pytest-cov
 	py3-flexmock
 	"
-subpackages="$pkgname-bash-completion"
+subpackages="$pkgname-bash-completion $pkgname-pyc"
 source="$pkgname-$pkgver.tar.gz::https://projects.torsion.org/borgmatic-collective/borgmatic/archive/$pkgver.tar.gz
 	fix-postgresql-hook.patch
 	python3.patch
diff --git a/community/breezy/APKBUILD b/community/breezy/APKBUILD
index 51e2899a49a6d45002ae8ffa69d26cb12b4f5a27..9700b4fefce99b065c831c90f7c0a23d1a20c01e 100644
--- a/community/breezy/APKBUILD
+++ b/community/breezy/APKBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Pedro Filipe <xpecex@outlook.com>
 pkgname=breezy
 pkgver=3.3.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Decentralized revision control system"
 url="https://www.breezy-vcs.org/"
 arch="all"
@@ -18,6 +18,7 @@ makedepends="
 	"
 checkdepends="py3-subunit py3-testtools"
 options="!check" # Requires unittest2
+subpackages="$pkgname-pyc"
 source="https://launchpad.net/brz/${pkgver%.*}/$pkgver/+download/breezy-$pkgver.tar.gz"
 
 case "$CARCH" in
diff --git a/community/bubblejail/APKBUILD b/community/bubblejail/APKBUILD
index 60200397a696c7c8f724aa7e9e361a2bff43d32d..f8cb5133dafa9d75a19d82d4dc002f8eaecfa912 100644
--- a/community/bubblejail/APKBUILD
+++ b/community/bubblejail/APKBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Donoban <donoban@riseup.net>
 pkgname=bubblejail
 pkgver=0.7.0
-pkgrel=0
+pkgrel=1
 pkgdesc="Bubblewrap based sandboxing for desktop applications"
 url="https://github.com/igo95862/bubblejail"
 arch="noarch"
@@ -22,6 +22,7 @@ makedepends="
 	"
 subpackages="
 	$pkgname-doc
+	$pkgname-pyc
 	$pkgname-bash-completion
 	$pkgname-fish-completion
 	$pkgname-config
@@ -50,7 +51,6 @@ config() {
 	depends="$pkgname=$pkgver-r$pkgrel py3-qt5"
 	amove /usr/bin/bubblejail-config
 	amove /usr/lib/python3.*/site-packages/bubblejail/bubblejail_gui_qt.py
-	amove /usr/lib/python3.*/site-packages/bubblejail/__pycache__/bubblejail_gui_qt.*
 }
 
 sha512sums="
diff --git a/community/capstone/APKBUILD b/community/capstone/APKBUILD
index e16bd7897f7bac85b4fe312608efd3cc81eb2264..e2044ff30930bfffb25beadac2224147ddb70beb 100644
--- a/community/capstone/APKBUILD
+++ b/community/capstone/APKBUILD
@@ -2,14 +2,14 @@
 # Maintainer: Valery Kartel <valery.kartel@gmail.com>
 pkgname=capstone
 pkgver=4.0.2
-pkgrel=6
+pkgrel=7
 pkgdesc="The Ultimate Disassembler"
 url="https://www.capstone-engine.org"
 arch="all"
 license="BSD-3-Clause-Clear"
 depends_dev="$pkgname"
 makedepends="bash py3-setuptools cython python3-dev"
-subpackages="$pkgname-static $pkgname-dev py3-${pkgname}:_py3 cstool"
+subpackages="$pkgname-static $pkgname-dev py3-$pkgname-pyc py3-${pkgname}:_py3 cstool"
 source="$pkgname-$pkgver.tar.gz::https://github.com/aquynh/capstone/archive/$pkgver.tar.gz
 	py-path-fix.patch
 	fix_version.patch
diff --git a/community/caribou/APKBUILD b/community/caribou/APKBUILD
index b56efa6c54d51914ceb8231c4b3ef77fafd1e744..8cad92d98a43da0343703bb20f2c499c9db1a0fe 100644
--- a/community/caribou/APKBUILD
+++ b/community/caribou/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Rasmus Thomsen <oss@cogitri.dev>
 pkgname=caribou
 pkgver=0.4.21
-pkgrel=9
+pkgrel=10
 pkgdesc="on screen keyboard implementation"
 url="https://wiki.gnome.org/Projects/Caribou"
 arch="all"
@@ -10,7 +10,7 @@ license="LGPL-2.1-only"
 makedepends="gtk+3.0-dev clutter-dev libxklavier-dev libgee-dev
 	intltool itstool libxml2-dev libxslt py3-gobject3-dev gobject-introspection-dev
 	py3-gobject3"
-subpackages="$pkgname-dev $pkgname-lang"
+subpackages="$pkgname-dev $pkgname-lang $pkgname-pyc"
 source="https://download.gnome.org/sources/caribou/${pkgver%.*}/caribou-$pkgver.tar.xz
 	13df8b92ae89c796238e669ee6ef4447a42d6355.patch
 	"
diff --git a/community/certbot-apache/APKBUILD b/community/certbot-apache/APKBUILD
index 449cbdb2c923c3efab60d27053b20ea47c409879..0fa7fec46789691f816f5c7bf594a4401e3deba3 100644
--- a/community/certbot-apache/APKBUILD
+++ b/community/certbot-apache/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Francesco Colista <fcolista@alpinelinux.org>
 pkgname=certbot-apache
 pkgver=2.5.0
-pkgrel=0
+pkgrel=1
 pkgdesc="Apache plugin for Certbot client"
 url="https://github.com/certbot/certbot"
 arch="noarch"
@@ -18,6 +18,7 @@ makedepends="
 	py3-wheel
 	"
 checkdepends="py3-pytest-xdist"
+subpackages="$pkgname-pyc"
 source="$pkgname-$pkgver.tar.gz::https://github.com/certbot/certbot/archive/refs/tags/v$pkgver.tar.gz"
 builddir="$srcdir/certbot-$pkgver/$pkgname"
 
diff --git a/community/certbot-nginx/APKBUILD b/community/certbot-nginx/APKBUILD
index 8ab27951daf03ca345ce4b7a632e2451c23af51a..29b76c7fa95c68e08438096d233d7e068feef28a 100644
--- a/community/certbot-nginx/APKBUILD
+++ b/community/certbot-nginx/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Francesco Colista <fcolista@alpinelinux.org>
 pkgname=certbot-nginx
 pkgver=2.5.0
-pkgrel=0
+pkgrel=1
 pkgdesc="Nginx plugin for Certbot client"
 url="https://github.com/certbot/certbot"
 arch="noarch"
@@ -19,6 +19,7 @@ makedepends="
 	py3-wheel
 	"
 checkdepends="py3-pytest-xdist"
+subpackages="$pkgname-pyc"
 source="$pkgname-$pkgver.tar.gz::https://github.com/certbot/certbot/archive/refs/tags/v$pkgver.tar.gz"
 builddir="$srcdir/certbot-$pkgver/$pkgname"
 
diff --git a/community/certbot/APKBUILD b/community/certbot/APKBUILD
index 5a74fc9a685a215d7f150287fcb9da27ce864004..230979bffba49cd4fd19719abae06996d832f55f 100644
--- a/community/certbot/APKBUILD
+++ b/community/certbot/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Francesco Colista <fcolista@alpinelinux.org>
 pkgname=certbot
 pkgver=2.5.0
-pkgrel=0
+pkgrel=1
 pkgdesc="An ACME client that can update Apache/Nginx configurations"
 url="https://github.com/certbot/certbot"
 arch="noarch"
@@ -25,6 +25,7 @@ makedepends="
 	py3-wheel
 	"
 checkdepends="py3-augeas py3-pytest-xdist"
+subpackages="$pkgname-pyc"
 source="$pkgname-$pkgver.tar.gz::https://github.com/certbot/certbot/archive/refs/tags/v$pkgver.tar.gz"
 builddir="$srcdir/certbot-$pkgver/$pkgname"
 
diff --git a/community/cffconvert/APKBUILD b/community/cffconvert/APKBUILD
index c7ad800769c76c4a31fb996df60f46b3b102a489..98f360845cd4c4e01e280573619127723dce1e1c 100644
--- a/community/cffconvert/APKBUILD
+++ b/community/cffconvert/APKBUILD
@@ -3,7 +3,7 @@
 pkgname=cffconvert
 pkgver=2.0.0
 _pkgorig=cff-converter-python
-pkgrel=2
+pkgrel=3
 pkgdesc="Command line program to validate and convert CITATION.cff files"
 url="https://github.com/citation-file-format/cff-converter-python"
 arch="noarch"
@@ -11,6 +11,7 @@ license="Apache-2.0 license"
 depends="python3 py3-click py3-jsonschema py3-pykwalify py3-requests py3-ruamel.yaml"
 checkdepends="python3-dev py3-pytest"
 makedepends="py3-setuptools"
+subpackages="$pkgname-pyc"
 source="$pkgname-$pkgver.tar.gz::https://github.com/citation-file-format/cff-converter-python/archive/$pkgver/$_pkgorig-$pkgver.tar.gz"
 builddir="$srcdir/$_pkgorig-$pkgver"
 options="!check" # a minor portion of tests are failing
diff --git a/community/cloud-init/APKBUILD b/community/cloud-init/APKBUILD
index 9184e13f9895a19abcf0ead6fdfbef92d26c0b67..a9fbcf257be84a2ef63f0232e459e773b0dba9cc 100644
--- a/community/cloud-init/APKBUILD
+++ b/community/cloud-init/APKBUILD
@@ -15,7 +15,7 @@ pkgname=cloud-init
 # update/upgrade.
 #
 pkgver=23.1.1
-pkgrel=0
+pkgrel=1
 pkgdesc="Cloud instance init scripts"
 url="https://cloud-init.io"
 # Dependant package "cloud-utils-growpart" is not available for
@@ -54,6 +54,7 @@ checkdepends="
 subpackages="
 	$pkgname-bash-completion
 	$pkgname-doc
+	$pkgname-pyc
 	$pkgname-openrc
 	"
 source="cloud-init-$pkgver.tar.gz::https://github.com/canonical/cloud-init/archive/$pkgver.tar.gz
diff --git a/community/cloudflare-ddns/APKBUILD b/community/cloudflare-ddns/APKBUILD
index ded3c49c5bbfee41da91f172e7432d2675a5f912..ae52b8e202538222a167c45d72459254a109f07f 100644
--- a/community/cloudflare-ddns/APKBUILD
+++ b/community/cloudflare-ddns/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Rasmus Thomsen <oss@cogitri.dev>
 pkgname=cloudflare-ddns
 pkgver=1.4.0
-pkgrel=0
+pkgrel=1
 pkgdesc="DDNS script to sync public IP address to CloudFlare dns records"
 options="!check" # No testsuite
 url="https://github.com/undefinedplayer/cloudflare-ddns"
@@ -10,6 +10,7 @@ arch="noarch"
 license="MIT"
 depends="py3-requests"
 makedepends="py3-setuptools"
+subpackages="$pkgname-pyc"
 source="$pkgname-$pkgver.tar.gz::https://github.com/undefinedplayer/cloudflare-ddns/archive/$pkgver.tar.gz"
 
 build() {
diff --git a/community/deluge/APKBUILD b/community/deluge/APKBUILD
index 12edc3fbd179f914f51fd5f050afa7aee543c266..ca1ad9c0731313fad20a095c4db13c1e2fbddefa 100644
--- a/community/deluge/APKBUILD
+++ b/community/deluge/APKBUILD
@@ -3,7 +3,7 @@
 # Maintainer: psykose <alice@ayaya.dev>
 pkgname=deluge
 pkgver=2.1.1
-pkgrel=6
+pkgrel=7
 pkgdesc="lightweight, Free Software, cross-platform BitTorrent client"
 url="https://deluge-torrent.org/"
 arch="noarch"
@@ -43,7 +43,7 @@ checkdepends="
 	py3-pytest
 	"
 options="!check" # failing ui off-by-one size tests, segfault in another
-subpackages="$pkgname-doc $pkgname-gtk"
+subpackages="$pkgname-doc $pkgname-gtk $pkgname-pyc"
 source="http://download.deluge-torrent.org/source/${pkgver%.*}/deluge-$pkgver.tar.xz
 	deluge.desktop
 	"
diff --git a/community/dnsrecon/APKBUILD b/community/dnsrecon/APKBUILD
index 959ff58897e4582f181ce98f155fe4e81aa6a04e..6d22f6f1ef9cc4beb9fc68f72ab6586cf75473b0 100644
--- a/community/dnsrecon/APKBUILD
+++ b/community/dnsrecon/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Francesco Colista <fcolista@alpinelinux.org>
 pkgname=dnsrecon
 pkgver=1.1.3
-pkgrel=2
+pkgrel=3
 pkgdesc="DNS Enumeration Script"
 url="https://github.com/darkoperator/dnsrecon"
 arch="noarch"
@@ -16,6 +16,7 @@ makedepends="
 	"
 checkdepends="py3-pytest"
 options="!check"
+subpackages="$pkgname-pyc"
 source="$pkgname-$pkgver.tar.gz::https://github.com/darkoperator/dnsrecon/archive/$pkgver.tar.gz"
 
 build() {
diff --git a/community/dnstwist/APKBUILD b/community/dnstwist/APKBUILD
index 742382b0bd6d042ce81f3eb84892197d2a50fdb6..509aba84f3fd74b2a56e2b66fbba1f10d921d4f7 100644
--- a/community/dnstwist/APKBUILD
+++ b/community/dnstwist/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
 pkgname=dnstwist
 pkgver=20221213
-pkgrel=0
+pkgrel=1
 pkgdesc="Domain name permutation engine"
 options="!check" # no testsuite
 url="https://dnstwist.it"
@@ -18,7 +18,7 @@ depends="
 	python3
 	"
 makedepends="py3-setuptools"
-subpackages="$pkgname-dictionaries"
+subpackages="$pkgname-dictionaries $pkgname-pyc"
 
 source="$pkgname-$pkgver.tar.gz::https://github.com/elceef/dnstwist/archive/$pkgver.tar.gz"
 
diff --git a/community/dzonegit/APKBUILD b/community/dzonegit/APKBUILD
index 6883ad4e2dcd454f620f9f0050152b306669862e..8a2dce477141b81216379a0c274aa05570589dbf 100644
--- a/community/dzonegit/APKBUILD
+++ b/community/dzonegit/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Jakub Jirutka <jakub@jirutka.cz>
 pkgname=dzonegit
 pkgver=0.15
-pkgrel=1
+pkgrel=2
 pkgdesc="Git hooks to manage a repository of DNS zones"
 url="https://github.com/oskar456/dzonegit"
 arch="noarch"
@@ -10,6 +10,7 @@ license="MIT"
 depends="bind-tools git python3"
 makedepends="py3-setuptools py3-pytest-runner"
 checkdepends="py3-pytest py3-pytest-runner"
+subpackages="$pkgname-pyc"
 source="https://github.com/oskar456/dzonegit/archive/v$pkgver/dzonegit-$pkgver.tar.gz"
 
 build() {
diff --git a/community/edk2/APKBUILD b/community/edk2/APKBUILD
index c070d3980e5eff7ef7b2a0a17c82b41a829f2b57..b526756163d908e8e76dea8c2dc04a48283abde6 100644
--- a/community/edk2/APKBUILD
+++ b/community/edk2/APKBUILD
@@ -6,14 +6,14 @@ pkgver=0.0.202211
 _realver=edk2-stable${pkgver##*.}
 _sslver=1.1.1s
 _sfver=3e
-pkgrel=1
+pkgrel=2
 pkgdesc="EFI Development Kit II"
 url="https://github.com/tianocore/tianocore.github.io/wiki/EDK-II/"
 arch="x86_64 aarch64"
 license="BSD-2-Clause-Patent"
 makedepends="bash python3 iasl nasm util-linux-dev util-linux-misc"
 options="!check" # has no checks
-subpackages=""
+subpackages="$pkgname-pyc"
 source="$pkgname-$pkgver.tar.gz::https://github.com/tianocore/edk2/archive/$_realver.tar.gz
 	https://www.openssl.org/source/openssl-$_sslver.tar.gz
 	http://www.jhauser.us/arithmetic/SoftFloat-$_sfver.zip
@@ -136,6 +136,13 @@ aavmf() {
 	done
 }
 
+pyc() {
+	default_pyc
+
+	local IFS=$'\n'
+	amove $(find usr/share/edk2/Python -type d -name __pycache__)
+}
+
 sha512sums="
 e889e071d46ef4c6a6cf1200c33b398205a171086c8deb9cba179e6c704550e86c5f4d9f552bed074828c7a770d6a46c1feee207b18e844eb1a80a8f5749173e  edk2-0.0.202211.tar.gz
 2ef983f166b5e1bf456ca37938e7e39d58d4cd85e9fc4b5174a05f5c37cc5ad89c3a9af97a6919bcaab128a8a92e4bdc8a045e5d9156d90768da8f73ac67c5b9  openssl-1.1.1s.tar.gz
diff --git a/community/electrum/APKBUILD b/community/electrum/APKBUILD
index 659cbc1bcb8c7ecc6f2458f3f2fce0b7850effda..0c62264b0642cc38c81e0be2ddc7c8cff29af3cc 100644
--- a/community/electrum/APKBUILD
+++ b/community/electrum/APKBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Michał Adamski <michal@ert.pl>
 pkgname=electrum
 pkgver=4.3.4
-pkgrel=0
+pkgrel=1
 pkgdesc="Lightweight Bitcoin Wallet"
 url="https://electrum.org/"
 arch="noarch"
@@ -23,6 +23,7 @@ depends="
 	"
 makedepends="py3-setuptools"
 checkdepends="py3-pytest py3-cryptography py3-pyaes"
+subpackages="$pkgname-pyc"
 source="
 	electrum-$pkgver.tar.gz::https://github.com/spesmilo/electrum/archive/refs/tags/$pkgver.tar.gz
 	0001-apk-add-instead-of-apt-get-install.patch
diff --git a/community/emborg/APKBUILD b/community/emborg/APKBUILD
index 2c5ee86fd7c324d59dab189833f21cdb37920176..1f504f6ea4ddfea7037979885bcb398d8d397204 100644
--- a/community/emborg/APKBUILD
+++ b/community/emborg/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Andy Hawkins <andy@gently.org.uk>
 pkgname=emborg
 pkgver=1.35
-pkgrel=0
+pkgrel=1
 pkgdesc="Front-End to Borg Backup"
 url="https://emborg.readthedocs.io/"
 # armhf: borgbackup
@@ -29,6 +29,7 @@ checkdepends="
 	py3-parametrize-from-file
 	py3-voluptuous
 	"
+subpackages="$pkgname-pyc"
 source="https://github.com/KenKundert/emborg/archive/v$pkgver/emborg-v$pkgver.tar.gz"
 # https://github.com/KenKundert/emborg/issues/66
 options="!check"
diff --git a/community/extract-dtb/APKBUILD b/community/extract-dtb/APKBUILD
index 1bef9b28a4055c468f2dcc2c1ccc1309441aa89f..eb221b3cab81c40c24e07aeabc3bf2cdd5b2baf5 100644
--- a/community/extract-dtb/APKBUILD
+++ b/community/extract-dtb/APKBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Dzmitry Sankouski <dsankouski@gmail.com>
 pkgname=extract-dtb
 pkgver=1.2.2
-pkgrel=0
+pkgrel=1
 pkgdesc="Tool to split a kernel image with appended dtbs into separated kernel and dtb files"
 url="https://github.com/PabloCastellano/extract-dtb"
 arch="noarch"
@@ -12,6 +12,7 @@ makedepends="
 	py3-setuptools
 	py3-wheel
 	"
+subpackages="$pkgname-pyc"
 source="$pkgname-$pkgver.tar.gz::https://github.com/PabloCastellano/extract-dtb/archive/$pkgver.tar.gz"
 options="!check" # no tests
 
diff --git a/community/eyed3/APKBUILD b/community/eyed3/APKBUILD
index fcce2ed6dff8bd5b38161aff2da43c0fa7edefaf..f7d44c49df22ef947aabac01a3abf17220bb350b 100644
--- a/community/eyed3/APKBUILD
+++ b/community/eyed3/APKBUILD
@@ -3,13 +3,14 @@
 pkgname=eyed3
 _pkgname=eyeD3
 pkgver=0.9.7
-pkgrel=2
+pkgrel=3
 pkgdesc="ID3 tag editor in Python"
 url="https://eyed3.nicfit.net/"
 arch="noarch"
 license="GPL-3.0-or-later"
 depends="python3 py3-magic py3-deprecation py3-filetype"
 makedepends="py3-setuptools"
+subpackages="$pkgname-pyc"
 source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
 builddir="$srcdir"/$_pkgname-$pkgver
 
diff --git a/community/filecheck/APKBUILD b/community/filecheck/APKBUILD
index 886f73bfbdda6950c6018e10cda981d29ae78ee8..57cb30b71bb0b92c40ebed082ca8b5a9ee433760 100644
--- a/community/filecheck/APKBUILD
+++ b/community/filecheck/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
 pkgname=filecheck
 pkgver=0.0.23
-pkgrel=0
+pkgrel=1
 pkgdesc="Attempt to reimplement LLVM's FileCheck using Python"
 url="https://github.com/mull-project/FileCheck.py"
 arch="noarch"
@@ -10,6 +10,7 @@ license="Apache-2.0"
 depends="python3"
 makedepends="py3-poetry-core py3-gpep517 py3-installer"
 checkdepends="py3-pytest"
+subpackages="$pkgname-pyc"
 source="https://github.com/mull-project/FileCheck.py/archive/v$pkgver/filecheck-$pkgver.tar.gz"
 builddir="$srcdir/FileCheck.py-$pkgver"
 
diff --git a/community/flatbuffers/APKBUILD b/community/flatbuffers/APKBUILD
index 8cb9788d5f0470af1d08a277645dba5171a161a3..69fad5c6b3da6d20cf0595e8c66a81762275a2a8 100644
--- a/community/flatbuffers/APKBUILD
+++ b/community/flatbuffers/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
 pkgname=flatbuffers
 pkgver=23.3.3
-pkgrel=3
+pkgrel=4
 pkgdesc="Memory Efficient Serialization Library"
 url="https://google.github.io/flatbuffers/"
 # armhf: blocked by bus error in tests
@@ -17,7 +17,7 @@ makedepends="
 	py3-wheel
 	samurai
 	"
-subpackages="$pkgname-dev flatc py3-$pkgname:py3"
+subpackages="$pkgname-dev flatc py3-$pkgname-pyc py3-$pkgname:py3"
 source="flatbuffers-$pkgver.tar.gz::https://github.com/google/flatbuffers/archive/v$pkgver.tar.gz
 	locale-headers.patch
 	"
diff --git a/community/flawfinder/APKBUILD b/community/flawfinder/APKBUILD
index 6fc0a2ad6c06d4ab84429909df1a61bb960d483f..29952ba8a1545e487014a172516a55d83fd87651 100644
--- a/community/flawfinder/APKBUILD
+++ b/community/flawfinder/APKBUILD
@@ -2,14 +2,14 @@
 # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
 pkgname=flawfinder
 pkgver=2.0.19
-pkgrel=1
+pkgrel=2
 pkgdesc="Examines C/C++ source code for security flaws"
 url="https://dwheeler.com/flawfinder/"
 arch="noarch"
 license="GPL-2.0"
 depends="python3"
 makedepends="py3-setuptools"
-subpackages="$pkgname-doc"
+subpackages="$pkgname-doc $pkgname-pyc"
 source="https://dwheeler.com/flawfinder/flawfinder-$pkgver.tar.gz"
 
 check() {
diff --git a/community/flexget/APKBUILD b/community/flexget/APKBUILD
index 374ca252b9922c6cc110114e8b901984987a8e54..80f75c1c531386f188115a804ebbf8f5926fd5b0 100644
--- a/community/flexget/APKBUILD
+++ b/community/flexget/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Anjandev Momi <anjan@momi.ca>
 pkgname=flexget
 pkgver=3.3.37
-pkgrel=1
+pkgrel=2
 pkgdesc="Multipurpose automation tool for downloading media content from different sources"
 url="https://flexget.com/"
 arch="noarch"
@@ -45,6 +45,7 @@ depends="
 	"
 makedepends="py3-setuptools py3-gpep517 py3-installer py3-wheel"
 checkdepends="py3-pytest"
+subpackages="$pkgname-pyc"
 source="$pkgname-$pkgver.tar.gz::https://github.com/Flexget/Flexget/releases/download/v$pkgver/FlexGet-$pkgver.tar.gz"
 builddir="$srcdir/FlexGet-$pkgver"
 options="!check"
diff --git a/community/fs-uae-launcher/APKBUILD b/community/fs-uae-launcher/APKBUILD
index b47c91893be24f919b734709a4c3c50d3f918195..601b50616521a604cf42a2dd8357efd5df9d226c 100644
--- a/community/fs-uae-launcher/APKBUILD
+++ b/community/fs-uae-launcher/APKBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Taner Tas <taner76@gmail.com>
 pkgname=fs-uae-launcher
 pkgver=3.1.68
-pkgrel=3
+pkgrel=4
 pkgdesc="FS-UAE emulator launcher."
 url="https://github.com/FrodeSolheim/fs-uae-launcher"
 arch="noarch !armhf !armv7 !aarch64 !s390x"  # fs-uae not avail
@@ -16,7 +16,7 @@ depends="
 	python3
 	"
 makedepends="gettext"
-subpackages="$pkgname-lang"
+subpackages="$pkgname-lang $pkgname-pyc"
 source="https://fs-uae.net/files/FS-UAE-Launcher/Stable/$pkgver/fs-uae-launcher-$pkgver.tar.xz"
 options="!check"  # no testsuite
 
@@ -33,6 +33,13 @@ package() {
 	rm -rf "$pkgdir"/usr/share/doc
 }
 
+pyc() {
+	default_pyc
+
+	local IFS=$'\n'
+	amove $(find usr/share/fs-uae-launcher -type d -name __pycache__)
+}
+
 sha512sums="
 a637117602c7276b60350ac3bb9c69eec4c18454efd4024e7b822da897eee0f9299f406e4126771f753b75f29d53591e9bbe3e4cbc016dda1ec063e73fe51f07  fs-uae-launcher-3.1.68.tar.xz
 "