Gentoo Archives: gentoo-python

From: Mike Gilbert <floppym@g.o>
To: "Michał Górny" <mgorny@g.o>
Cc: gentoo-python <gentoo-python@l.g.o>, Gentoo Python Project <python@g.o>
Subject: Re: [gentoo-python] [PATCH distutils-r1 2/4] Add proper error handling to _distutils-r1_disable_ez_setup.
Date: Wed, 21 Aug 2013 18:26:52
Message-Id: CAJ0EP43cEveVxJ7XD52AunJfUyG6eBUoBwt_TWrBO2dq0DEysA@mail.gmail.com
In Reply to: [gentoo-python] [PATCH distutils-r1 2/4] Add proper error handling to _distutils-r1_disable_ez_setup. by "Michał Górny"
1 On Wed, Aug 21, 2013 at 6:43 AM, Michał Górny <mgorny@g.o> wrote:
2 > ---
3 > gx86/eclass/distutils-r1.eclass | 8 ++++++--
4 > 1 file changed, 6 insertions(+), 2 deletions(-)
5 >
6 > diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.eclass
7 > index 97ddbe4..fba7634 100644
8 > --- a/gx86/eclass/distutils-r1.eclass
9 > +++ b/gx86/eclass/distutils-r1.eclass
10 > @@ -310,8 +310,12 @@ distutils_install_for_testing() {
11 >
12 > _distutils-r1_disable_ez_setup() {
13 > local stub="def use_setuptools(*args, **kwargs): pass"
14 > - [[ -f ez_setup.py ]] && echo "${stub}" > ez_setup.py
15 > - [[ -f distribute_setup.py ]] && echo "${stub}" > distribute_setup.py
16 > + if [[ -f ez_setup.py ]]; then
17 > + echo "${stub}" > ez_setup.py || die
18 > + fi
19 > + if [[ -f distribute_setup.py ]]; then
20 > + echo "${stub}" > distribute_setup.py || die
21 > + fi
22 > }
23 >
24 > # @FUNCTION: distutils-r1_python_prepare_all
25 > --
26 > 1.8.3.2
27 >
28 >
29
30 LGTM