Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 536528 - sci-libs/gdal-1.11.1-r1 should byte-compile Python modules
Summary: sci-libs/gdal-1.11.1-r1 should byte-compile Python modules
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-13 20:01 UTC by Chris Mayo
Modified: 2016-11-25 21:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 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.