From: Gary Thomas <gary@mlbassoc.com>
To: Poky Project <poky@yoctoproject.org>
Subject: [PATCH] setuptools: Make options for setup.py more flexible
Date: Wed, 13 Apr 2011 15:17:23 -0600 [thread overview]
Message-ID: <4DA612E3.3010007@mlbassoc.com> (raw)
[-- 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
next reply other threads:[~2011-04-13 21:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-13 21:17 Gary Thomas [this message]
[not found] <F3D705F8-F925-42C6-8719-2E09CE9CB93A@beagleboard.org>
2011-04-15 9:36 ` [PATCH] setuptools: Make options for setup.py more flexible Koen Kooi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DA612E3.3010007@mlbassoc.com \
--to=gary@mlbassoc.com \
--cc=poky@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox