Fixed for me by adding to src_install(): if use python ; then python_optimize python_optimize "${ED}"/usr/share/gnucash/python fi This package installs one or more Python modules that are not byte-compiled. The following files are missing: /usr/lib/python3.7/site-packages/gnucash/__pycache__/gnucash_core_c.cpython-37.pyc /usr/lib/python3.7/site-packages/gnucash/__pycache__/gnucash_core_c.cpython-37.opt-1.pyc /usr/lib/python3.7/site-packages/gnucash/__pycache__/gnucash_core_c.cpython-37.opt-2.pyc /usr/lib/python3.7/site-packages/gnucash/__pycache__/gnucash_core.cpython-37.pyc /usr/lib/python3.7/site-packages/gnucash/__pycache__/gnucash_core.cpython-37.opt-1.pyc /usr/lib/python3.7/site-packages/gnucash/__pycache__/gnucash_core.cpython-37.opt-2.pyc /usr/lib/python3.7/site-packages/gnucash/__pycache__/gnucash_business.cpython-37.pyc /usr/lib/python3.7/site-packages/gnucash/__pycache__/gnucash_business.cpython-37.opt-1.pyc /usr/lib/python3.7/site-packages/gnucash/__pycache__/gnucash_business.cpython-37.opt-2.pyc /usr/lib/python3.7/site-packages/gnucash/__pycache__/function_class.cpython-37.pyc /usr/lib/python3.7/site-packages/gnucash/__pycache__/function_class.cpython-37.opt-1.pyc /usr/lib/python3.7/site-packages/gnucash/__pycache__/function_class.cpython-37.opt-2.pyc /usr/lib/python3.7/site-packages/gnucash/__pycache__/__init__.cpython-37.pyc /usr/lib/python3.7/site-packages/gnucash/__pycache__/__init__.cpython-37.opt-1.pyc /usr/lib/python3.7/site-packages/gnucash/__pycache__/__init__.cpython-37.opt-2.pyc
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28c81d28176d8f2e6a0ee96b8195a9ce7035b44a commit 28c81d28176d8f2e6a0ee96b8195a9ce7035b44a Author: Aaron W. Swenson <titanofold@gentoo.org> AuthorDate: 2020-04-03 17:30:09 +0000 Commit: Aaron W. Swenson <titanofold@gentoo.org> CommitDate: 2020-04-03 17:30:14 +0000 app-office/gnucash: Dep & python fix Correct mistaken change on sys-libs/gwenhywfar dependency. It's only needed with net-libs/aqbanking. Thanks to Karl-Johan Karlsson for spotting the error. Also, address QA warning by optimizing Python code. Thanks to Chris Mayo for submitting the fix. Bug: https://bugs.gentoo.org/715344 Bug: https://bugs.gentoo.org/704632 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Aaron W. Swenson <titanofold@gentoo.org> app-office/gnucash/gnucash-3.8b-r1.ebuild | 211 ++++++++++++++++++++++++++++++ 1 file changed, 211 insertions(+)