1 |
Dnia 2013-08-21, o godz. 15:33:12 |
2 |
Mike Gilbert <floppym@g.o> napisał(a): |
3 |
|
4 |
> On Wed, Aug 21, 2013 at 3:27 PM, Michał Górny <mgorny@g.o> wrote: |
5 |
> > Dnia 2013-08-21, o godz. 14:31:01 |
6 |
> > Mike Gilbert <floppym@g.o> napisał(a): |
7 |
> > |
8 |
> >> On Wed, Aug 21, 2013 at 6:43 AM, Michał Górny <mgorny@g.o> wrote: |
9 |
> >> > --- |
10 |
> >> > gx86/eclass/distutils-r1.eclass | 13 +++++++++++++ |
11 |
> >> > 1 file changed, 13 insertions(+) |
12 |
> >> > |
13 |
> >> > diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.eclass |
14 |
> >> > index e95df3e..39e4434 100644 |
15 |
> >> > --- a/gx86/eclass/distutils-r1.eclass |
16 |
> >> > +++ b/gx86/eclass/distutils-r1.eclass |
17 |
> >> > @@ -322,6 +322,17 @@ _distutils-r1_disable_ez_setup() { |
18 |
> >> > fi |
19 |
> >> > } |
20 |
> >> > |
21 |
> >> > +# @FUNCTION: _distutils-r1_copy_egg_info |
22 |
> >> > +# @DESCRIPTION: |
23 |
> >> > +# Copy egg-info files to the ${BUILD_DIR} (that's going to become |
24 |
> >> > +# egg-base in esetup.py). This way, we respect whatever's in upstream |
25 |
> >> > +# egg-info. |
26 |
> >> > +_distutils-r1_copy_egg_info() { |
27 |
> >> > + mkdir -p "${BUILD_DIR}" || die |
28 |
> >> > + # stupid freebsd can't do 'cp -t ${BUILD_DIR} {} +' |
29 |
> >> > + find -name '*.egg-info' -exec cp -pr {} "${BUILD_DIR}"/ ';' || die |
30 |
> >> > +} |
31 |
> >> > + |
32 |
> >> > # @FUNCTION: distutils-r1_python_prepare_all |
33 |
> >> > # @DESCRIPTION: |
34 |
> >> > # The default python_prepare_all(). It applies the patches from PATCHES |
35 |
> >> > @@ -382,6 +393,8 @@ distutils-r1_python_configure() { |
36 |
> >> > distutils-r1_python_compile() { |
37 |
> >> > debug-print-function ${FUNCNAME} "${@}" |
38 |
> >> > |
39 |
> >> > + _distutils-r1_copy_egg_info |
40 |
> >> > + |
41 |
> >> > esetup.py "${@}" |
42 |
> >> > } |
43 |
> >> > |
44 |
> >> > -- |
45 |
> >> > 1.8.3.2 |
46 |
> >> > |
47 |
> >> |
48 |
> >> I don't think there is any point in copying egg-info *files* (created |
49 |
> >> via distutils); we only seem to run into issues with setuptools and |
50 |
> >> the egg-info directories. |
51 |
> > |
52 |
> > You mean to use '-type d' here? |
53 |
> > |
54 |
> |
55 |
> Yes. |
56 |
|
57 |
Added. |
58 |
|
59 |
-- |
60 |
Best regards, |
61 |
Michał Górny |