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 2/4] Add proper error handling to _distutils-r1_disable_ez_setup.
Date: Wed, 21 Aug 2013 10:43:09
Message-Id: 1377081788-1666-2-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 | 8 ++++++--
3 1 file changed, 6 insertions(+), 2 deletions(-)
4
5 diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.eclass
6 index 97ddbe4..fba7634 100644
7 --- a/gx86/eclass/distutils-r1.eclass
8 +++ b/gx86/eclass/distutils-r1.eclass
9 @@ -310,8 +310,12 @@ distutils_install_for_testing() {
10
11 _distutils-r1_disable_ez_setup() {
12 local stub="def use_setuptools(*args, **kwargs): pass"
13 - [[ -f ez_setup.py ]] && echo "${stub}" > ez_setup.py
14 - [[ -f distribute_setup.py ]] && echo "${stub}" > distribute_setup.py
15 + if [[ -f ez_setup.py ]]; then
16 + echo "${stub}" > ez_setup.py || die
17 + fi
18 + if [[ -f distribute_setup.py ]]; then
19 + echo "${stub}" > distribute_setup.py || die
20 + fi
21 }
22
23 # @FUNCTION: distutils-r1_python_prepare_all
24 --
25 1.8.3.2

Replies