public inbox for gentoo-python@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-python] [PATCH 1/2] Pass custom arguments to esetup.py before the 'build' set.
@ 2013-01-11 21:03 Michał Górny
  2013-01-11 21:03 ` [gentoo-python] [PATCH 2/2] Make option passing docs clear Michał Górny
  2013-01-12 18:54 ` [gentoo-python] Re: [PATCH 1/2] Pass custom arguments to esetup.py before the 'build' set Mike Gilbert
  0 siblings, 2 replies; 4+ messages in thread
From: Michał Górny @ 2013-01-11 21:03 UTC (permalink / raw
  To: gentoo-python; +Cc: python, hasufell, Michał Górny

This is cleaner, and also permits passing global setup.py options.
---
 gx86/eclass/distutils-r1.eclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.eclass
index 8156a36..1958b1a 100644
--- a/gx86/eclass/distutils-r1.eclass
+++ b/gx86/eclass/distutils-r1.eclass
@@ -175,13 +175,13 @@ DEPEND=${PYTHON_DEPS}
 esetup.py() {
 	debug-print-function ${FUNCNAME} "${@}"
 
-	local args=()
+	local add_args=()
 	if [[ ! ${DISTUTILS_IN_SOURCE_BUILD} ]]; then
 		if [[ ! ${BUILD_DIR} ]]; then
 			die 'Out-of-source build requested, yet BUILD_DIR unset.'
 		fi
 
-		args+=(
+		add_args+=(
 			build
 			--build-base "${BUILD_DIR}"
 			# using a single directory for them helps us export ${PYTHONPATH}
@@ -192,7 +192,7 @@ esetup.py() {
 	fi
 
 	set -- "${PYTHON:-python}" setup.py \
-		"${args[@]}" "${mydistutilsargs[@]}" "${@}"
+		"${mydistutilsargs[@]}" "${@}" "${add_args[@]}"
 
 	echo "${@}" >&2
 	"${@}" || die
-- 
1.8.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-01-12 22:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-11 21:03 [gentoo-python] [PATCH 1/2] Pass custom arguments to esetup.py before the 'build' set Michał Górny
2013-01-11 21:03 ` [gentoo-python] [PATCH 2/2] Make option passing docs clear Michał Górny
2013-01-12 18:54 ` [gentoo-python] Re: [PATCH 1/2] Pass custom arguments to esetup.py before the 'build' set Mike Gilbert
2013-01-12 22:50   ` Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox