Fixed for me by adding to src_install(): use python && python_optimize QA Notice: This package installs one or more Python modules that are not byte-compiled. The following files are missing: /usr/lib/python3.10/site-packages/osgeo/__pycache__/__init__.cpython-310.opt-1.pyc /usr/lib/python3.10/site-packages/osgeo/__pycache__/__init__.cpython-310.opt-2.pyc /usr/lib/python3.10/site-packages/osgeo/__pycache__/__init__.cpython-310.pyc /usr/lib/python3.10/site-packages/osgeo/__pycache__/gdal.cpython-310.opt-1.pyc /usr/lib/python3.10/site-packages/osgeo/__pycache__/gdal.cpython-310.opt-2.pyc /usr/lib/python3.10/site-packages/osgeo/__pycache__/gdal.cpython-310.pyc /usr/lib/python3.10/site-packages/osgeo/__pycache__/gdal_array.cpython-310.opt-1.pyc /usr/lib/python3.10/site-packages/osgeo/__pycache__/gdal_array.cpython-310.opt-2.pyc /usr/lib/python3.10/site-packages/osgeo/__pycache__/gdal_array.cpython-310.pyc ...
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fc7fd23fb6eee83dae168e2bab950db4dbe9f02 commit 1fc7fd23fb6eee83dae168e2bab950db4dbe9f02 Author: Andrew Ammerlaan <andrewammerlaan@gentoo.org> AuthorDate: 2022-10-21 11:18:17 +0000 Commit: Andrew Ammerlaan <andrewammerlaan@gentoo.org> CommitDate: 2022-10-21 15:04:48 +0000 sci-libs/gdal: enable python3.11 and byte-compile python Closes: https://bugs.gentoo.org/866207 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org> sci-libs/gdal/{gdal-3.5.2.ebuild => gdal-3.5.2-r1.ebuild} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)