sci-libs/xdmf2: Call 'python_optimize' only when USE=python

Gentoo-bug: 592848

Package-Manager: portage-2.3.0
This commit is contained in:
David Seifert
2016-09-04 16:01:41 +02:00
parent 36694c116f
commit 3192a0aa1e

View File

@@ -70,5 +70,5 @@ src_install() {
# need to byte-compile 'XdmfCore.py' and 'Xdmf.py'
# as the CMake build system does not compile them itself
python_optimize "${D%/}$(python_get_sitedir)"
use python && python_optimize "${D%/}$(python_get_sitedir)"
}