Gentoo Archives: gentoo-python

From: "Michał Górny" <mgorny@g.o>
To: gentoo-python@l.g.o
Cc: python@g.o, "Michał Górny" <mgorny@g.o>
Subject: [gentoo-python] [PATCH distutils-r1 3/4] Describe _distutils-r1_disable_ez_setup() using eclassdoc.
Date: Wed, 21 Aug 2013 10:43:10
Message-Id: 1377081788-1666-3-git-send-email-mgorny@gentoo.org
In Reply to: [gentoo-python] [PATCHES] distutils-r1: some cleanup + egg-info fixes by "Michał Górny"
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

Replies