Since release 1.2.0 Meson has by default been byte-compiling Python modules at level 0. Changing to level 2 makes it possible for some ebuilds to stop using python_optimize.
Signed-off-by: Chris Mayo <[email protected]> --- eclass/meson.eclass | 1 + 1 file changed, 1 insertion(+) Available at: https://github.com/gentoo/gentoo/pull/43157 diff --git a/eclass/meson.eclass b/eclass/meson.eclass index a2bc5537e458..fd3fd091c9fb 100644 --- a/eclass/meson.eclass +++ b/eclass/meson.eclass @@ -352,6 +352,7 @@ setup_meson_src_configure() { --build.pkg-config-path "${BUILD_PKG_CONFIG_PATH}${BUILD_PKG_CONFIG_PATH:+:}${EPREFIX}/usr/share/pkgconfig" --pkg-config-path "${PKG_CONFIG_PATH}${PKG_CONFIG_PATH:+:}${EPREFIX}/usr/share/pkgconfig" --native-file "$(_meson_create_native_file)" + --python.bytecompile 2 # gcc[pch] is masked in profiles due to consistent bugginess # without forcing this off, some packages may fail too (like gjs, -- 2.49.1
