Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH python-r1 7/8] Use python_export_best() in distutils-r1.
Date: Sat, 27 Oct 2012 11:05:16
Message-Id: 1351335771-3618-7-git-send-email-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH python-r1 1/8] python_export: support obtaining site-packages directory. by "Michał Górny"
1 ---
2 gx86/eclass/distutils-r1.eclass | 9 ++-------
3 1 file changed, 2 insertions(+), 7 deletions(-)
4
5 diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.eclass
6 index e83a85a..bab7dbc 100644
7 --- a/gx86/eclass/distutils-r1.eclass
8 +++ b/gx86/eclass/distutils-r1.eclass
9 @@ -253,13 +253,8 @@ distutils-r1_python_install_all() {
10
11 # note: keep in sync with ...rename_scripts()
12 # also, we assume that each script is installed for all impls
13 - local impl EPYTHON PYTHON
14 - for impl in "${PYTHON_COMPAT[@]}"; do
15 - if use "python_targets_${impl}"; then
16 - python_export "${impl}" EPYTHON
17 - break
18 - fi
19 - done
20 + local EPYTHON
21 + python_export_best EPYTHON
22
23 for f in "${D}"/{bin,sbin,usr/bin,usr/sbin,games/bin}/*-"${EPYTHON}"; do
24 if [[ -x ${f} ]]; then
25 --
26 1.7.12.4