1 |
This is cleaner, and also permits passing global setup.py options. |
2 |
--- |
3 |
gx86/eclass/distutils-r1.eclass | 6 +++--- |
4 |
1 file changed, 3 insertions(+), 3 deletions(-) |
5 |
|
6 |
diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.eclass |
7 |
index 8156a36..1958b1a 100644 |
8 |
--- a/gx86/eclass/distutils-r1.eclass |
9 |
+++ b/gx86/eclass/distutils-r1.eclass |
10 |
@@ -175,13 +175,13 @@ DEPEND=${PYTHON_DEPS} |
11 |
esetup.py() { |
12 |
debug-print-function ${FUNCNAME} "${@}" |
13 |
|
14 |
- local args=() |
15 |
+ local add_args=() |
16 |
if [[ ! ${DISTUTILS_IN_SOURCE_BUILD} ]]; then |
17 |
if [[ ! ${BUILD_DIR} ]]; then |
18 |
die 'Out-of-source build requested, yet BUILD_DIR unset.' |
19 |
fi |
20 |
|
21 |
- args+=( |
22 |
+ add_args+=( |
23 |
build |
24 |
--build-base "${BUILD_DIR}" |
25 |
# using a single directory for them helps us export ${PYTHONPATH} |
26 |
@@ -192,7 +192,7 @@ esetup.py() { |
27 |
fi |
28 |
|
29 |
set -- "${PYTHON:-python}" setup.py \ |
30 |
- "${args[@]}" "${mydistutilsargs[@]}" "${@}" |
31 |
+ "${mydistutilsargs[@]}" "${@}" "${add_args[@]}" |
32 |
|
33 |
echo "${@}" >&2 |
34 |
"${@}" || die |
35 |
-- |
36 |
1.8.1 |