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 1/4] Namespace _disable_ez_setup.
Date: Wed, 21 Aug 2013 10:43:07
Message-Id: 1377081788-1666-1-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 | 4 ++--
3 1 file changed, 2 insertions(+), 2 deletions(-)
4
5 diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.eclass
6 index 81e5824..97ddbe4 100644
7 --- a/gx86/eclass/distutils-r1.eclass
8 +++ b/gx86/eclass/distutils-r1.eclass
9 @@ -308,7 +308,7 @@ distutils_install_for_testing() {
10 esetup.py "${add_args[@]}"
11 }
12
13 -_disable_ez_setup() {
14 +_distutils-r1_disable_ez_setup() {
15 local stub="def use_setuptools(*args, **kwargs): pass"
16 [[ -f ez_setup.py ]] && echo "${stub}" > ez_setup.py
17 [[ -f distribute_setup.py ]] && echo "${stub}" > distribute_setup.py
18 @@ -337,7 +337,7 @@ distutils-r1_python_prepare_all() {
19 fi
20
21 # Prevent packages from downloading their own copy of setuptools
22 - _disable_ez_setup
23 + _distutils-r1_disable_ez_setup
24
25 if [[ ${DISTUTILS_IN_SOURCE_BUILD} && ! ${DISTUTILS_SINGLE_IMPL} ]]
26 then
27 --
28 1.8.3.2

Replies