diff options
Diffstat (limited to 'documentation/migration-guides/migration-4.2.rst')
-rw-r--r-- | documentation/migration-guides/migration-4.2.rst | 22 |
1 files changed, 22 insertions, 0 deletions
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: | |||
85 | 85 | ||
86 | See :ref:`all supported distributions <system-requirements-supported-distros>`. | 86 | See :ref:`all supported distributions <system-requirements-supported-distros>`. |
87 | 87 | ||
88 | |||
89 | .. _migration-4.2-addpylib: | ||
90 | |||
91 | Python library code extensions | ||
92 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
93 | |||
94 | BitBake in this release now supports a new ``addpylib`` directive to enable | ||
95 | Python libraries within layers. | ||
96 | |||
97 | This directive should be added to your layer configuration | ||
98 | as in the below example from ``meta/conf/layer.conf``:: | ||
99 | |||
100 | addpylib ${LAYERDIR}/lib oe | ||
101 | |||
102 | Layers currently adding a lib directory to extend Python library code should now | ||
103 | use this directive as :term:`BBPATH` is not going to be added automatically by | ||
104 | OE-Core in future. Note that the directives are immediate operations, so it does | ||
105 | make modules available for use sooner than the current BBPATH-based approach. | ||
106 | |||
107 | For more information, see :ref:`bitbake-user-manual/bitbake-user-manual-metadata:extending python library code`. | ||
108 | |||
109 | |||
88 | .. _migration-4.2-misc-changes: | 110 | .. _migration-4.2-misc-changes: |
89 | 111 | ||
90 | Miscellaneous changes | 112 | Miscellaneous changes |