Skip to contentSkip to conversation

distutils: remove classes

PATCH New Trevor Gamblin 1 participant 1 message May 22, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 distutils: remove classes

distutils is no longer in Python as of 3.12. Nothing seems to be using these classes in the layer, so remove them.

---
 .../classes/distutils-common-base.bbclass     | 28 --------
 meta-python/classes/distutils3-base.bbclass   |  9 ---
 meta-python/classes/distutils3.bbclass        | 71 -------------------
 3 files changed, 108 deletions(-)
 delete mode 100644 meta-python/classes/distutils-common-base.bbclass
 delete mode 100644 meta-python/classes/distutils3-base.bbclass
 delete mode 100644 meta-python/classes/distutils3.bbclass
meta-python/classes/distutils-common-base.bbclass deleted +0 -28
deleted file mode 100644
index 59c750a3cf..0000000000
@@ -1,28 +0,0 @@
-export STAGING_INCDIR
-export STAGING_LIBDIR
-
-# LDSHARED is the ld *command* used to create shared library
-export LDSHARED  = "${CCLD} -shared"
-# LDXXSHARED is the ld *command* used to create shared library of C++
-# objects
-export LDCXXSHARED  = "${CXX} -shared"
-# CCSHARED are the C *flags* used to create objects to go into a shared
-# library (module)
-export CCSHARED  = "-fPIC -DPIC"
-# LINKFORSHARED are the flags passed to the $(CC) command that links
-# the python executable
-export LINKFORSHARED = "${SECURITY_CFLAGS} -Xlinker -export-dynamic"
-
-FILES:${PN} += "${libdir}/* ${libdir}/${PYTHON_DIR}/*"
-
-FILES:${PN}-staticdev += "\
-  ${PYTHON_SITEPACKAGES_DIR}/*.a \
-"
-FILES:${PN}-dev += "\
-  ${datadir}/pkgconfig \
-  ${libdir}/pkgconfig \
-  ${PYTHON_SITEPACKAGES_DIR}/*.la \
-"
-python __anonymous() {
-    bb.warn("distutils-common-base.bbclass is deprecated, please use setuptools3-base.bbclass instead")
-}
meta-python/classes/distutils3-base.bbclass deleted +0 -9
deleted file mode 100644
index d36b4c4a3e..0000000000
@@ -1,9 +0,0 @@
-DEPENDS:append:class-target = " python3-native python3"
-DEPENDS:append:class-nativesdk = " python3-native python3"
-RDEPENDS:${PN} += "${@['', 'python3-core']['${CLASSOVERRIDE}' == 'class-target']}"
-
-inherit distutils-common-base python3native python3targetconfig
-
-python __anonymous() {
-    bb.warn("distutils3-base.bbclass is deprecated, please use setuptools3-base.bbclass instead")
-}
meta-python/classes/distutils3.bbclass deleted +0 -71

71 lines not on this page · raw message

Signature · 1 line
2.39.5