Gentoo Archives: gentoo-python

From: "Michał Górny" <mgorny@g.o>
To: gentoo-python@l.g.o
Cc: python@g.o, hasufell@g.o, "Michał Górny" <mgorny@g.o>
Subject: [gentoo-python] [PATCH 2/2] Make option passing docs clear.
Date: Fri, 11 Jan 2013 21:04:03
Message-Id: 1357938233-1810-2-git-send-email-mgorny@gentoo.org
In Reply to: [gentoo-python] [PATCH 1/2] Pass custom arguments to esetup.py before the 'build' set. by "Michał Górny"
1 ---
2 gx86/eclass/distutils-r1.eclass | 19 ++++++++++---------
3 1 file changed, 10 insertions(+), 9 deletions(-)
4
5 diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.eclass
6 index 1958b1a..64ec5b1 100644
7 --- a/gx86/eclass/distutils-r1.eclass
8 +++ b/gx86/eclass/distutils-r1.eclass
9 @@ -168,8 +168,9 @@ DEPEND=${PYTHON_DEPS}
10 # @DESCRIPTION:
11 # Run the setup.py using currently selected Python interpreter
12 # (if ${PYTHON} is set; fallback 'python' otherwise). The setup.py will
13 -# be passed default command-line arguments, then ${mydistutilsargs[@]},
14 -# then any parameters passed to this command.
15 +# be passed default ${mydistutilsargs[@]}, then any parameters passed
16 +# to this command and optionally a standard option set (e.g. the build
17 +# directory in an ebuild using out-of-source builds).
18 #
19 # This command dies on failure.
20 esetup.py() {
21 @@ -228,9 +229,7 @@ distutils-r1_python_prepare_all() {
22
23 # @FUNCTION: distutils-r1_python_prepare
24 # @DESCRIPTION:
25 -# The default python_prepare(). Currently it is a no-op
26 -# but in the future it may apply implementation-specific quirks
27 -# to the build system.
28 +# The default python_prepare(). A no-op.
29 distutils-r1_python_prepare() {
30 debug-print-function ${FUNCNAME} "${@}"
31
32 @@ -239,7 +238,7 @@ distutils-r1_python_prepare() {
33
34 # @FUNCTION: distutils-r1_python_configure
35 # @DESCRIPTION:
36 -# The default python_configure(). Currently a no-op.
37 +# The default python_configure(). A no-op.
38 distutils-r1_python_configure() {
39 debug-print-function ${FUNCNAME} "${@}"
40
41 @@ -250,7 +249,8 @@ distutils-r1_python_configure() {
42 # @USAGE: [additional-args...]
43 # @DESCRIPTION:
44 # The default python_compile(). Runs 'esetup.py build'. Any parameters
45 -# passed to this function will be passed to setup.py.
46 +# passed to this function will be appended to setup.py invocation,
47 +# i.e. passed as options to the 'build' command.
48 distutils-r1_python_compile() {
49 debug-print-function ${FUNCNAME} "${@}"
50
51 @@ -259,7 +259,7 @@ distutils-r1_python_compile() {
52
53 # @FUNCTION: distutils-r1_python_test
54 # @DESCRIPTION:
55 -# The default python_test(). Currently a no-op.
56 +# The default python_test(). A no-op.
57 distutils-r1_python_test() {
58 debug-print-function ${FUNCNAME} "${@}"
59
60 @@ -304,7 +304,8 @@ _distutils-r1_rename_scripts() {
61 # @DESCRIPTION:
62 # The default python_install(). Runs 'esetup.py install', appending
63 # the optimization flags. Then renames the installed scripts.
64 -# Any parameters passed to this function will be passed to setup.py.
65 +# Any parameters passed to this function will be appended
66 +# to the setup.py invocation (i.e. as options to the 'install' command).
67 distutils-r1_python_install() {
68 debug-print-function ${FUNCNAME} "${@}"
69
70 --
71 1.8.1