1 |
On Wed, Aug 21, 2013 at 6:43 AM, Michał Górny <mgorny@g.o> wrote: |
2 |
> --- |
3 |
> gx86/eclass/distutils-r1.eclass | 13 +++++++++++++ |
4 |
> 1 file changed, 13 insertions(+) |
5 |
> |
6 |
> diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.eclass |
7 |
> index e95df3e..39e4434 100644 |
8 |
> --- a/gx86/eclass/distutils-r1.eclass |
9 |
> +++ b/gx86/eclass/distutils-r1.eclass |
10 |
> @@ -322,6 +322,17 @@ _distutils-r1_disable_ez_setup() { |
11 |
> fi |
12 |
> } |
13 |
> |
14 |
> +# @FUNCTION: _distutils-r1_copy_egg_info |
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' -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 |
> @@ -382,6 +393,8 @@ distutils-r1_python_configure() { |
29 |
> distutils-r1_python_compile() { |
30 |
> debug-print-function ${FUNCNAME} "${@}" |
31 |
> |
32 |
> + _distutils-r1_copy_egg_info |
33 |
> + |
34 |
> esetup.py "${@}" |
35 |
> } |
36 |
> |
37 |
> -- |
38 |
> 1.8.3.2 |
39 |
> |
40 |
|
41 |
I don't think there is any point in copying egg-info *files* (created |
42 |
via distutils); we only seem to run into issues with setuptools and |
43 |
the egg-info directories. |
44 |
|
45 |
On the other hand, I guess it doesn't hurt either way. |