summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2012-10-15 12:51:20 +0000
committerMichał Górny <mgorny@gentoo.org>2012-10-15 12:51:20 +0000
commit998b4483686688a1943f1b447910c13289dd8686 (patch)
treed9937b06042c1e7b79a5d92caee77c309ea0b5ef /eclass/distutils-r1.eclass
parentVersion bump (diff)
downloadhistorical-998b4483686688a1943f1b447910c13289dd8686.tar.gz
historical-998b4483686688a1943f1b447910c13289dd8686.tar.bz2
historical-998b4483686688a1943f1b447910c13289dd8686.zip
Fix missing wrapper symlinks when first supported Python implementation is disabled.
Diffstat (limited to 'eclass/distutils-r1.eclass')
-rw-r--r--eclass/distutils-r1.eclass12
1 files changed, 9 insertions, 3 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 20532633f090..863240056a8c 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.1 2012/10/14 10:58:03 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.2 2012/10/15 12:51:20 mgorny Exp $
# @ECLASS: distutils-r1
# @MAINTAINER:
@@ -221,8 +221,14 @@ distutils-r1_python_install_all() {
# note: keep in sync with ...rename_scripts()
# also, we assume that each script is installed for all impls
- local EPYTHON PYTHON
- _python_set_PYTHON "${PYTHON_COMPAT[0]}"
+ local impl EPYTHON PYTHON
+ for impl in "${PYTHON_COMPAT[@]}"; do
+ if use "python_targets_${impl}"; then
+ _python_set_PYTHON "${impl}"
+ break
+ fi
+ done
+
for f in "${D}"/{bin,sbin,usr/bin,usr/sbin}/*-"${EPYTHON}"; do
if [[ -x ${f} ]]; then
debug-print "${FUNCNAME}: found executable at ${f#${D}/}"