1 |
--- |
2 |
gx86/eclass/distutils-r1.eclass | 5 ++++- |
3 |
1 file changed, 4 insertions(+), 1 deletion(-) |
4 |
|
5 |
diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.eclass |
6 |
index fba7634..e95df3e 100644 |
7 |
--- a/gx86/eclass/distutils-r1.eclass |
8 |
+++ b/gx86/eclass/distutils-r1.eclass |
9 |
@@ -308,6 +308,10 @@ distutils_install_for_testing() { |
10 |
esetup.py "${add_args[@]}" |
11 |
} |
12 |
|
13 |
+# @FUNCTION: _distutils-r1_disable_ez_setup |
14 |
+# @DESCRIPTION: |
15 |
+# Stub out ez_setup.py and distribute_setup.py to prevent packages |
16 |
+# from trying to download a local copy of setuptools. |
17 |
_distutils-r1_disable_ez_setup() { |
18 |
local stub="def use_setuptools(*args, **kwargs): pass" |
19 |
if [[ -f ez_setup.py ]]; then |
20 |
@@ -340,7 +344,6 @@ distutils-r1_python_prepare_all() { |
21 |
fi |
22 |
fi |
23 |
|
24 |
- # Prevent packages from downloading their own copy of setuptools |
25 |
_distutils-r1_disable_ez_setup |
26 |
|
27 |
if [[ ${DISTUTILS_IN_SOURCE_BUILD} && ! ${DISTUTILS_SINGLE_IMPL} ]] |
28 |
-- |
29 |
1.8.3.2 |