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