Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 536528

Summary: sci-libs/gdal-1.11.1-r1 should byte-compile Python modules
Product: Gentoo Linux Reporter: Chris Mayo <aklhfex>
Component: [OLD] LibraryAssignee: Sci-geo Project <sci-geosciences>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Chris Mayo 2015-01-13 20:01:47 UTC
.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
Comment 1 Patrice Clement (RETIRED) gentoo-dev 2016-11-25 21:48:35 UTC
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.