Index: distutils-r1.eclass =================================================================== RCS file: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v retrieving revision 1.63 diff -u -B -r1.63 distutils-r1.eclass --- distutils-r1.eclass 9 Mar 2013 13:13:02 -0000 1.63 +++ distutils-r1.eclass 11 Mar 2013 20:04:15 -0000 @@ -209,11 +209,13 @@ # @FUNCTION: esetup.py # @USAGE: [...] # @DESCRIPTION: -# Run the setup.py using currently selected Python interpreter -# (if ${PYTHON} is set; fallback 'python' otherwise). The setup.py will -# be passed default ${mydistutilsargs[@]}, then any parameters passed -# to this command and optionally a standard option set (e.g. the build -# directory in an ebuild using out-of-source builds). +# Run setup.py using currently selected Python interpreter +# (if ${PYTHON} is set; fallback 'python' otherwise). +# +# setup.py will be passed the following, in order: +# 1. ${mydistutilsargs[@]} +# 2. The 'build' command and standard build options including ${BUILD_DIR} +# 3. Any additional arguments passed to the esetup.py function. # # This command dies on failure. esetup.py() { @@ -242,7 +244,7 @@ fi set -- "${PYTHON:-python}" setup.py \ - "${mydistutilsargs[@]}" "${@}" "${add_args[@]}" + "${mydistutilsargs[@]}" "${add_args[@]}" "${@}" echo "${@}" >&2 "${@}" || die @@ -353,7 +355,7 @@ distutils-r1_python_compile() { debug-print-function ${FUNCNAME} "${@}" - esetup.py build "${@}" + esetup.py "${@}" } # @FUNCTION: distutils-r1_python_test