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 2/3] Move _distutils-r1_copy_egg_info to a better location.
Date: Thu, 19 Sep 2013 10:30:42
Message-Id: 1379586664-19620-3-git-send-email-mgorny@gentoo.org
In Reply to: [gentoo-python] [PATCHES] Use pydistutils.cfg to pass build-dir by "Michał Górny"
1 ---
2 gx86/eclass/distutils-r1.eclass | 24 ++++++++++++------------
3 1 file changed, 12 insertions(+), 12 deletions(-)
4
5 diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.eclass
6 index 2337891..153a12e 100644
7 --- a/gx86/eclass/distutils-r1.eclass
8 +++ b/gx86/eclass/distutils-r1.eclass
9 @@ -323,18 +323,6 @@ _distutils-r1_disable_ez_setup() {
10 fi
11 }
12
13 -# @FUNCTION: _distutils-r1_copy_egg_info
14 -# @INTERNAL
15 -# @DESCRIPTION:
16 -# Copy egg-info files to the ${BUILD_DIR} (that's going to become
17 -# egg-base in esetup.py). This way, we respect whatever's in upstream
18 -# egg-info.
19 -_distutils-r1_copy_egg_info() {
20 - mkdir -p "${BUILD_DIR}" || die
21 - # stupid freebsd can't do 'cp -t ${BUILD_DIR} {} +'
22 - find -name '*.egg-info' -type d -exec cp -pr {} "${BUILD_DIR}"/ ';' || die
23 -}
24 -
25 # @FUNCTION: distutils-r1_python_prepare_all
26 # @DESCRIPTION:
27 # The default python_prepare_all(). It applies the patches from PATCHES
28 @@ -386,6 +374,18 @@ distutils-r1_python_configure() {
29 :
30 }
31
32 +# @FUNCTION: _distutils-r1_copy_egg_info
33 +# @INTERNAL
34 +# @DESCRIPTION:
35 +# Copy egg-info files to the ${BUILD_DIR} (that's going to become
36 +# egg-base in esetup.py). This way, we respect whatever's in upstream
37 +# egg-info.
38 +_distutils-r1_copy_egg_info() {
39 + mkdir -p "${BUILD_DIR}" || die
40 + # stupid freebsd can't do 'cp -t ${BUILD_DIR} {} +'
41 + find -name '*.egg-info' -type d -exec cp -pr {} "${BUILD_DIR}"/ ';' || die
42 +}
43 +
44 # @FUNCTION: distutils-r1_python_compile
45 # @USAGE: [additional-args...]
46 # @DESCRIPTION:
47 --
48 1.8.3.2