.pyc and .pyo files not present for .py files in site-packages. Fixed for me by adding python_optimize to install_python(): --- gdal-1.11.1-r1.ebuild.orig +++ gdal-1.11.1-r1.ebuild @@ -324,6 +324,7 @@ install_python() { emake -C swig/python DESTDIR="${D}" install + python_optimize } if use python; then python_foreach_impl run_in_build_dir install_python
commit d35b1a8e820494e5447c9479fc687e971e20a0b4 (HEAD -> master, origin/master, origin/HEAD) Author: Chris Mayo <aklhfex@gmail.com> AuthorDate: Mon Nov 7 19:38:27 2016 +0000 Commit: Patrice Clement <monsieurp@gentoo.org> CommitDate: Fri Nov 25 22:48:10 2016 +0100 sci-libs/gdal: only install Python modules for PYTHON_TARGETS. Also adds byte-compilation for Python modules. Gentoo-Bug: https://bugs.gentoo.org/536528 Package-Manager: portage-2.3.0 Closes: https://github.com/gentoo/gentoo/pull/2423 Signed-off-by: Patrice Clement <monsieurp@gentoo.org> sci-libs/gdal/gdal-2.0.2-r3.ebuild | 285 +++++++++++++++++++++++++++++++++++++ 1 file changed, 285 insertions(+) create mode 100644 sci-libs/gdal/gdal-2.0.2-r3.ebuild Merged! Thanks.