summaryrefslogtreecommitdiffstats
path: root/meta-python/classes/distutils3-base.bbclass
diff options
context:
space:
mode:
authorTim Orling <ticotimo@gmail.com>2022-02-24 12:21:29 -0800
committerKhem Raj <raj.khem@gmail.com>2022-03-01 09:13:42 -0800
commitd6dcffc75445fafa93ed4e55f549b149fc9161eb (patch)
treebf7d35aa2434f27d7699f076073ab672a6a3d01d /meta-python/classes/distutils3-base.bbclass
parent9c0cbd1d8f2f4d7370dfd2be747efd5014f539fa (diff)
downloadmeta-openembedded-d6dcffc75445fafa93ed4e55f549b149fc9161eb.tar.gz
distutils*.bbclass: move from oe-core
distutils has been deprecated in Python 3.10 and will be removed in Python 3.12 (predicted release date October 2023). For now, move these classes from oe-core to allow users to migrate. A deprecation warning has been added to each class. Documentation is also being dropped in oe-core, but users can refer to 3.4 documentation for the legacy variables and classes. [YOCTO #14610] Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/classes/distutils3-base.bbclass')
-rw-r--r--meta-python/classes/distutils3-base.bbclass9
1 files changed, 9 insertions, 0 deletions
diff --git a/meta-python/classes/distutils3-base.bbclass b/meta-python/classes/distutils3-base.bbclass
new file mode 100644
index 0000000000..850c535bb1
--- /dev/null
+++ b/meta-python/classes/distutils3-base.bbclass
@@ -0,0 +1,9 @@
1DEPENDS:append:class-target = " ${PYTHON_PN}-native ${PYTHON_PN}"
2DEPENDS:append:class-nativesdk = " ${PYTHON_PN}-native ${PYTHON_PN}"
3RDEPENDS:${PN} += "${@['', '${PYTHON_PN}-core']['${CLASSOVERRIDE}' == 'class-target']}"
4
5inherit distutils-common-base python3native python3targetconfig
6
7python __anonymous() {
8 bb.warn("distutils3-base.bbclass is deprecated, please use setuptools3-base.bbclass instead")
9