From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-python@lists.gentoo.org
Cc: python@gentoo.org, "Michał Górny" <mgorny@gentoo.org>
Subject: [gentoo-python] [PATCH python-r1 1/2] Reuse multibuild.eclass in python_export_best().
Date: Sun, 17 Mar 2013 23:33:49 +0100 [thread overview]
Message-ID: <1363559630-17431-1-git-send-email-mgorny@gentoo.org> (raw)
---
gx86/eclass/python-r1.eclass | 22 ++++++++--------------
1 file changed, 8 insertions(+), 14 deletions(-)
diff --git a/gx86/eclass/python-r1.eclass b/gx86/eclass/python-r1.eclass
index 12e3baa..99bd240 100644
--- a/gx86/eclass/python-r1.eclass
+++ b/gx86/eclass/python-r1.eclass
@@ -661,24 +661,18 @@ python_parallel_foreach_impl() {
python_export_best() {
debug-print-function ${FUNCNAME} "${@}"
- _python_validate_useflags
-
[[ ${#} -gt 0 ]] || set -- EPYTHON PYTHON
- local impl best
- for impl in "${_PYTHON_ALL_IMPLS[@]}"; do
- if has "${impl}" "${PYTHON_COMPAT[@]}" \
- && _python_impl_supported "${impl}" \
- && use "python_targets_${impl}"
- then
- best=${impl}
- fi
- done
+ local best MULTIBUILD_VARIANTS
+ _python_obtain_impls
- [[ ${best+1} ]] || die "python_export_best(): no implementation found!"
+ _python_set_best() {
+ best=${MULTIBUILD_VARIANT}
+ }
+ multibuild_for_best_variant _python_set_best
- debug-print "${FUNCNAME}: Best implementation is: ${impl}"
- python_export "${impl}" "${@}"
+ debug-print "${FUNCNAME}: Best implementation is: ${best}"
+ python_export "${best}" "${@}"
}
# @FUNCTION: python_replicate_script
--
1.8.1.5
next reply other threads:[~2013-03-17 22:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-17 22:33 Michał Górny [this message]
2013-03-17 23:36 ` [gentoo-python] Re: [PATCH python-r1 1/2] Reuse multibuild.eclass in python_export_best() Mike Gilbert
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=1363559630-17431-1-git-send-email-mgorny@gentoo.org \
--to=mgorny@gentoo.org \
--cc=gentoo-python@lists.gentoo.org \
--cc=python@gentoo.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