summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2012-12-01 10:53:40 +0000
committerMichał Górny <mgorny@gentoo.org>2012-12-01 10:53:40 +0000
commit05165abee412ccac1ed4e110668bf33c755b8a63 (patch)
tree218f3d0fc80b7b068953448df7fa75bf4d741e33 /eclass/distutils-r1.eclass
parentUse intermediate-root install. (diff)
downloadhistorical-05165abee412ccac1ed4e110668bf33c755b8a63.tar.gz
historical-05165abee412ccac1ed4e110668bf33c755b8a63.tar.bz2
historical-05165abee412ccac1ed4e110668bf33c755b8a63.zip
Create the wrapper symlinks directly in _distutils-r1_rename_scripts rather than postponing it to distutils-r1_install_all.
Diffstat (limited to 'eclass/distutils-r1.eclass')
-rw-r--r--eclass/distutils-r1.eclass25
1 files changed, 6 insertions, 19 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index f0b250284313..34542b5c1f43 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.22 2012/12/01 10:52:40 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.23 2012/12/01 10:53:40 mgorny Exp $
# @ECLASS: distutils-r1
# @MAINTAINER:
@@ -268,8 +268,11 @@ _distutils-r1_rename_scripts() {
debug-print "${FUNCNAME}: matching shebang: $(head -n 1 "${f}")"
local newf=${f}-${EPYTHON}
- debug-print "${FUNCNAME}: renamed to ${newf#${D}/}"
+ debug-print "${FUNCNAME}: renaming to ${newf#${D}/}"
mv "${f}" "${newf}" || die
+
+ debug-print "${FUNCNAME}: installing wrapper at ${f#${D}/}"
+ _python_ln_rel "${path}"/usr/bin/python-exec "${f}" || die
fi
done < <(find "${path}" -type f -executable -print0)
}
@@ -309,9 +312,7 @@ distutils-r1_python_install() {
# @FUNCTION: distutils-r1_python_install_all
# @DESCRIPTION:
-# The default python_install_all(). It symlinks wrappers
-# for the implementation-suffixed executables and installs
-# documentation.
+# The default python_install_all(). It installs the documentation.
distutils-r1_python_install_all() {
debug-print-function ${FUNCNAME} "${@}"
@@ -331,20 +332,6 @@ distutils-r1_python_install_all() {
if declare -p HTML_DOCS &>/dev/null; then
dohtml -r "${HTML_DOCS[@]}" || die "dohtml failed"
fi
-
- # note: keep in sync with ...rename_scripts()
- # also, we assume that each script is installed for all impls
- local EPYTHON
- python_export_best EPYTHON
-
- local f
- while IFS= read -r -d '' f; do
- debug-print "${FUNCNAME}: found executable at ${f#${D}/}"
-
- local wrapf=${f%-${EPYTHON}}
-
- _python_ln_rel "${ED}"/usr/bin/python-exec "${wrapf}" || die
- done < <(find "${D}" -type f -executable -name "*-${EPYTHON}" -print0)
}
# @FUNCTION: distutils-r1_run_phase