Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 397425 - sci-geosciences/mapnik-2.0.0 does not byte-compile Python modules
Summary: sci-geosciences/mapnik-2.0.0 does not byte-compile Python modules
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Steve Arnold
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-02 17:38 UTC by Chris Mayo
Modified: 2012-05-26 09:44 UTC (History)
2 users (show)

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 2012-01-02 17:38:12 UTC
mapnik-2.0.0 Python modules are installed in site-packages/mapnik2 but are not compiled. Fixed for me by adding to pkg_postinst():

	if use python ; then
		python_mod_optimize mapnik2
	fi

and:

pkg_postrm() {
	if use python ; then
		python_mod_cleanup mapnik2
	fi
}
Comment 1 Tomáš Chvátal (RETIRED) gentoo-dev 2012-05-26 09:44:11 UTC
Fixed in main tree. Thanks for the report.