Patchwork [V2] python-setuptools: Do not pull in target python for native recipe

mail settings
Submitter Darren Hart
Date Dec. 17, 2011, 4:37 a.m.
Message ID <>
Download mbox | patch
Permalink /patch/17175/
State New
Headers show


Darren Hart - Dec. 17, 2011, 4:37 a.m.
glib-2.0 DEPENDS and DEPENDS_virtclass-native on python-argparse-native,
which inherits from setuptools, which DEPENDS on python-setuptools-native.

python-setuptools uses RDEPENDS_${PN} for python-distutils and
python-compression. By using ${PN} instead of python-setuptools, when
the -native version is built, RDEPENDS_python-setuptools-native gets
set to include the target versions python-setuptools and python-compression,
pulling the entire target python dependency chain into the build.

Follow recipes like automake by setting RDEPENDS with the PN written out
explicitly, RDEPENDS_python-setuptools, to avoid dragging in the target
python dependency chain.

Signed-off-by: Darren Hart <>
CC: Richard Purdie <>
CC: Saul Wold <>
 .../python/             |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/meta/recipes-devtools/python/ b/meta/recipes-devtools/python/
index 5dd5f31..0b8a219 100644
--- a/meta/recipes-devtools/python/
+++ b/meta/recipes-devtools/python/
@@ -20,7 +20,7 @@  do_install_prepend() {
     install -d ${D}/${libdir}/${PYTHON_DIR}/site-packages
-RDEPENDS_${PN} = "\
+RDEPENDS_python-setuptools = "\
   python-distutils \
   python-compression \