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 4/4] Copy egg-info files in python_prepare_all().
Date: Wed, 21 Aug 2013 10:43:12
Message-Id: 1377081788-1666-4-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 | 13 +++++++++++++
3 1 file changed, 13 insertions(+)
4
5 diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.eclass
6 index e95df3e..39e4434 100644
7 --- a/gx86/eclass/distutils-r1.eclass
8 +++ b/gx86/eclass/distutils-r1.eclass
9 @@ -322,6 +322,17 @@ _distutils-r1_disable_ez_setup() {
10 fi
11 }
12
13 +# @FUNCTION: _distutils-r1_copy_egg_info
14 +# @DESCRIPTION:
15 +# Copy egg-info files to the ${BUILD_DIR} (that's going to become
16 +# egg-base in esetup.py). This way, we respect whatever's in upstream
17 +# egg-info.
18 +_distutils-r1_copy_egg_info() {
19 + mkdir -p "${BUILD_DIR}" || die
20 + # stupid freebsd can't do 'cp -t ${BUILD_DIR} {} +'
21 + find -name '*.egg-info' -exec cp -pr {} "${BUILD_DIR}"/ ';' || die
22 +}
23 +
24 # @FUNCTION: distutils-r1_python_prepare_all
25 # @DESCRIPTION:
26 # The default python_prepare_all(). It applies the patches from PATCHES
27 @@ -382,6 +393,8 @@ distutils-r1_python_configure() {
28 distutils-r1_python_compile() {
29 debug-print-function ${FUNCNAME} "${@}"
30
31 + _distutils-r1_copy_egg_info
32 +
33 esetup.py "${@}"
34 }
35
36 --
37 1.8.3.2

Replies