From patchwork Sat Apr 16 06:55:25 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [47/58] setuptools: Make options for setup.py more flexible Date: Sat, 16 Apr 2011 06:55:25 -0000 From: Saul Wold X-Patchwork-Id: 2381 Message-Id: <4f60a8f2b1b3f935ea029e6b780151015ea31c18.1302936483.git.sgw@linux.intel.com> To: openembedded-core@lists.openembedded.org Cc: Scott Rifenbark , Paul Eggleton , Jingdong Lu , Kang Kai , Xiaofeng Yan From: Gary Thomas The setuptools class uses hard-wired options for 'setup.py' during the install step. In particular, not all versions of setup.py support the "--single-version-externally-managed" option. This patch allows for a recipe to easily override these options, while leaving the majority (important) setup options intact. --- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ >From 0afbe6b9477c207e37009c8ef5aa47b3438640a9 Mon Sep 17 00:00:00 2001 From: Gary Thomas Date: Wed, 13 Apr 2011 15:12:57 -0600 Subject: [PATCH] setuptools: Make options for setup.py more flexible Signed-off-by: Gary Thomas Signed-off-by: Saul Wold --- meta/classes/setuptools.bbclass | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/meta/classes/setuptools.bbclass b/meta/classes/setuptools.bbclass index ced9509..cf1c224 100644 --- a/meta/classes/setuptools.bbclass +++ b/meta/classes/setuptools.bbclass @@ -2,7 +2,8 @@ inherit distutils DEPENDS += "python-setuptools-native" +DISTUTILS_INSTALL_OPTS ?= "--single-version-externally-managed " DISTUTILS_INSTALL_ARGS = "--root=${D} \ - --single-version-externally-managed \ + ${DISTUTILS_INSTALL_OPTS} \ --prefix=${prefix} \ --install-data=${datadir}"