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 6/8] Reuse _python_ln_rel in distutils-r1.
Date: Sat, 27 Oct 2012 11:05:38
Message-Id: 1351335771-3618-6-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 | 18 ++----------------
3 1 file changed, 2 insertions(+), 16 deletions(-)
4
5 diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.eclass
6 index ce1b6f4..e83a85a 100644
7 --- a/gx86/eclass/distutils-r1.eclass
8 +++ b/gx86/eclass/distutils-r1.eclass
9 @@ -266,22 +266,8 @@ distutils-r1_python_install_all() {
10 debug-print "${FUNCNAME}: found executable at ${f#${D}/}"
11
12 local wrapf=${f%-${EPYTHON}}
13 - debug-print "${FUNCNAME}: will link wrapper to ${wrapf#${D}/}"
14 - local wrapfrom
15 - case "${f#${D}/}" in
16 - usr/bin*)
17 - wrapfrom=
18 - ;;
19 - usr/sbin*)
20 - wrapfrom=../bin/
21 - ;;
22 - *)
23 - wrapfrom=../usr/bin/
24 - ;;
25 - esac
26 - debug-print "${FUNCNAME}: (from ${wrapfrom}python-exec)"
27 -
28 - ln -s ${wrapfrom}python-exec "${wrapf}" || die
29 +
30 + _python_ln_rel "${ED}"/usr/bin/python-exec "${wrapf}" || die
31 fi
32 done
33 }
34 --
35 1.7.12.4