Gentoo Archives: gentoo-commits

From: Krzysztof Pawlik <nelchael@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/nelchael:master commit in: eclass/
Date: Thu, 01 Mar 2012 17:54:20
Message-Id: 1330549157.04df14590005e2efdb6b44b4d78554f452b0194d.nelchael@gentoo
1 commit: 04df14590005e2efdb6b44b4d78554f452b0194d
2 Author: Krzysztof Pawlik <none <AT> none>
3 AuthorDate: Wed Feb 29 20:59:17 2012 +0000
4 Commit: Krzysztof Pawlik <nelchael <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 29 20:59:17 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/nelchael.git;a=commit;h=04df1459
7
8 Add binary name for PyPy.
9
10 ---
11 eclass/python-distutils-ng.eclass | 3 +--
12 1 files changed, 1 insertions(+), 2 deletions(-)
13
14 diff --git a/eclass/python-distutils-ng.eclass b/eclass/python-distutils-ng.eclass
15 index 0bc2edf..dcdafc2 100644
16 --- a/eclass/python-distutils-ng.eclass
17 +++ b/eclass/python-distutils-ng.eclass
18 @@ -87,7 +87,7 @@ _python-distutils-ng_get_binary_for_implementation() {
19 python?.?|jython?.?)
20 echo "/usr/bin/${impl}" ;;
21 pypy?.?)
22 - echo "TODO" ;;
23 + echo "/usr/bin/pypy-c${impl: -3}" ;;
24 *)
25 die "Unsupported implementation: ${1}" ;;
26 esac
27 @@ -234,7 +234,6 @@ python-distutils-ng_newscript() {
28 local default_impl="${PYTHON_DEFAULT_IMPLEMENTATION}"
29
30 if [[ -z "${default_impl}" ]]; then
31 - # TODO: Pick default implementation
32 for impl in python{2_7,2_6,2_5,3_2,3_1} pypy{1_8,1_7} jython2_5; do
33 use "python_targets_${impl}" || continue
34 default_impl="${impl}"