diff --git a/documentation/migration-guides/migration-4.2.rst b/documentation/migration-guides/migration-4.2.rst index ccc3e8905e..c2ec8af8a4 100644 --- a/documentation/migration-guides/migration-4.2.rst +++ b/documentation/migration-guides/migration-4.2.rst @@ -85,6 +85,28 @@ On the other hand, some earlier distributions are no longer supported: See :ref:`all supported distributions `. + +.. _migration-4.2-addpylib: + +Python library code extensions +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +BitBake in this release now supports a new ``addpylib`` directive to enable +Python libraries within layers. + +This directive should be added to your layer configuration +as in the below example from ``meta/conf/layer.conf``:: + + addpylib ${LAYERDIR}/lib oe + +Layers currently adding a lib directory to extend Python library code should now +use this directive as :term:`BBPATH` is not going to be added automatically by +OE-Core in future. Note that the directives are immediate operations, so it does +make modules available for use sooner than the current BBPATH-based approach. + +For more information, see :ref:`bitbake-user-manual/bitbake-user-manual-metadata:extending python library code`. + + .. _migration-4.2-misc-changes: Miscellaneous changes diff --git a/documentation/migration-guides/release-notes-4.2.rst b/documentation/migration-guides/release-notes-4.2.rst index 4cf1974d4f..a3e821cb4b 100644 --- a/documentation/migration-guides/release-notes-4.2.rst +++ b/documentation/migration-guides/release-notes-4.2.rst @@ -11,12 +11,8 @@ New Features / Enhancements in 4.2 :term:`buildtools` tarball. - BitBake in this release now supports a new ``addpylib`` directive to enable - Python libraries within layers. - - This directive should be added to your layer configuration - as in the below example from ``meta/conf/layer.conf``:: - - addpylib ${LAYERDIR}/lib oe + Python libraries within layers. For more information, + see :ref:`bitbake-user-manual/bitbake-user-manual-metadata:extending python library code`. - BitBake has seen multiple internal changes that may impact memory and disk usage as well as parsing time, in particular: diff --git a/documentation/ref-manual/structure.rst b/documentation/ref-manual/structure.rst index e895382eec..f1b11ad69b 100644 --- a/documentation/ref-manual/structure.rst +++ b/documentation/ref-manual/structure.rst @@ -750,7 +750,9 @@ and lists of files and directories with known permissions. ------------- This directory contains OpenEmbedded Python library code used during the -build process. +build process. It is enabled via the ``addpylib`` directive in +``meta/conf/local.conf``. For more information, see +:ref:`bitbake-user-manual/bitbake-user-manual-metadata:extending python library code`. .. _structure-meta-recipes-bsp: