All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] setuptools: Make options for setup.py more flexible
@ 2011-04-13 21:17 Gary Thomas
  0 siblings, 0 replies; 2+ messages in thread
From: Gary Thomas @ 2011-04-13 21:17 UTC (permalink / raw)
  To: Poky Project

[-- Attachment #1: Type: text/plain, Size: 551 bytes --]

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
------------------------------------------------------------

[-- Attachment #2: 0001-Make-options-for-setup.py-more-flexible.patch --]
[-- Type: text/x-patch, Size: 906 bytes --]

From 0afbe6b9477c207e37009c8ef5aa47b3438640a9 Mon Sep 17 00:00:00 2001
From: Gary Thomas <gary@mlbassoc.com>
Date: Wed, 13 Apr 2011 15:12:57 -0600
Subject: [PATCH] setuptools: Make options for setup.py more flexible

Signed-off-by: Gary Thomas <gary@mlbassoc.com>
---
 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}"
-- 
1.7.3.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] setuptools: Make options for setup.py more flexible
       [not found] <F3D705F8-F925-42C6-8719-2E09CE9CB93A@beagleboard.org>
@ 2011-04-15  9:36 ` Koen Kooi
  0 siblings, 0 replies; 2+ messages in thread
From: Koen Kooi @ 2011-04-15  9:36 UTC (permalink / raw)
  To: Poky Project

[-- Attachment #1: Type: text/plain, Size: 1349 bytes --]




Begin doorgestuurd bericht:

> Van: Koen Kooi <koen@beagleboard.org>
> Datum: 15 april 2011 11:17:11 GMT+02:00
> Aan: Gary Thomas <gary@mlbassoc.com>
> Kopie: Poky Project <poky@yoctoproject.org>
> Onderwerp: Antw.: [poky] [PATCH] setuptools: Make options for setup.py more flexible
> 

> stuff that doesn't know about that option is usually distutils based instead of setuptools based. using the wrong one usually results in a broken egg file
> 
> Op 13 apr. 2011 om 23:17 heeft Gary Thomas <gary@mlbassoc.com> het volgende geschreven:
> 
>> 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
>> ------------------------------------------------------------
>> <0001-Make-options-for-setup.py-more-flexible.patch>
>> _______________________________________________
>> poky mailing list
>> poky@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/poky

[-- Attachment #2: Type: text/html, Size: 2867 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-15  9:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-13 21:17 [PATCH] setuptools: Make options for setup.py more flexible Gary Thomas
     [not found] <F3D705F8-F925-42C6-8719-2E09CE9CB93A@beagleboard.org>
2011-04-15  9:36 ` Koen Kooi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.