[OE-core] [PATCH] lib/oe: turn oe into a namespace package

Paul Eggleton paul.eggleton at linux.intel.com
Tue Mar 18 13:48:06 UTC 2014


On Friday 14 March 2014 19:06:26 Christopher Larson wrote:
> This will let folks extend the oe package with modules from other layers.
> Given openembedded consists of more than just oe-core, I think this makes
> sense, and adds some useful flexibility.
> 
> Signed-off-by: Christopher Larson <kergoth at gmail.com>
> ---
>  meta/lib/oe/__init__.py | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/meta/lib/oe/__init__.py b/meta/lib/oe/__init__.py
> index e69de29..3ad9513 100644
> --- a/meta/lib/oe/__init__.py
> +++ b/meta/lib/oe/__init__.py
> @@ -0,0 +1,2 @@
> +from pkgutil import extend_path
> +__path__ = extend_path(__path__, __name__)

FWIW, this broke builds on my CentOS build machine that uses a slightly older 
buildtools install from 1.4. I hope we have pkgutil in our more current 
buildtools - if not could you please send a fix for that as well?

Thanks,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the Openembedded-core mailing list