Gentoo Archives: gentoo-python

From: "Michał Górny" <mgorny@g.o>
To: gentoo-python@l.g.o
Cc: python@g.o, "Michał Górny" <mgorny@g.o>
Subject: [gentoo-python] [PATCH distutils-r1 1/6] Make distutils-r1_rename_scripts private.
Date: Thu, 29 Nov 2012 11:30:23
Message-Id: 1354188694-7229-2-git-send-email-mgorny@gentoo.org
In Reply to: [gentoo-python] distutils-r1: a bit of clean up + parallel builds by "Michał Górny"
1 ---
2 gx86/eclass/distutils-r1.eclass | 9 +++++----
3 1 file changed, 5 insertions(+), 4 deletions(-)
4
5 diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.eclass
6 index fc9416b..ee7dc83 100644
7 --- a/gx86/eclass/distutils-r1.eclass
8 +++ b/gx86/eclass/distutils-r1.eclass
9 @@ -243,13 +243,14 @@ distutils-r1_python_test() {
10 :
11 }
12
13 -# @FUNCTION: distutils-r1_rename_scripts
14 +# @FUNCTION: _distutils-r1_rename_scripts
15 +# @INTERNAL
16 # @DESCRIPTION:
17 # Renames installed Python scripts to be implementation-suffixed.
18 # ${PYTHON} has to be set to the expected Python executable (which
19 # hashbang will be grepped for), and ${EPYTHON} to the implementation
20 # name (for new name).
21 -distutils-r1_rename_scripts() {
22 +_distutils-r1_rename_scripts() {
23 debug-print-function ${FUNCNAME} "${@}"
24
25 local f
26 @@ -274,7 +275,7 @@ distutils-r1_rename_scripts() {
27 # @USAGE: [additional-args...]
28 # @DESCRIPTION:
29 # The default python_install(). Runs 'esetup.py install', appending
30 -# the optimization flags. Then calls distutils-r1_rename_scripts.
31 +# the optimization flags. Then calls _distutils-r1_rename_scripts.
32 # Any parameters passed to this function will be passed to setup.py.
33 distutils-r1_python_install() {
34 debug-print-function ${FUNCNAME} "${@}"
35 @@ -295,7 +296,7 @@ distutils-r1_python_install() {
36
37 esetup.py install "${flags[@]}" --root="${D}" "${@}"
38
39 - distutils-r1_rename_scripts
40 + _distutils-r1_rename_scripts
41 }
42
43 # @FUNCTION: distutils-r1_python_install_all
44 --
45 1.8.0