Dnia 2013-08-21, o godz. 14:31:01 Mike Gilbert napisał(a): > On Wed, Aug 21, 2013 at 6:43 AM, Michał Górny wrote: > > --- > > gx86/eclass/distutils-r1.eclass | 13 +++++++++++++ > > 1 file changed, 13 insertions(+) > > > > diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.eclass > > index e95df3e..39e4434 100644 > > --- a/gx86/eclass/distutils-r1.eclass > > +++ b/gx86/eclass/distutils-r1.eclass > > @@ -322,6 +322,17 @@ _distutils-r1_disable_ez_setup() { > > fi > > } > > > > +# @FUNCTION: _distutils-r1_copy_egg_info > > +# @DESCRIPTION: > > +# Copy egg-info files to the ${BUILD_DIR} (that's going to become > > +# egg-base in esetup.py). This way, we respect whatever's in upstream > > +# egg-info. > > +_distutils-r1_copy_egg_info() { > > + mkdir -p "${BUILD_DIR}" || die > > + # stupid freebsd can't do 'cp -t ${BUILD_DIR} {} +' > > + find -name '*.egg-info' -exec cp -pr {} "${BUILD_DIR}"/ ';' || die > > +} > > + > > # @FUNCTION: distutils-r1_python_prepare_all > > # @DESCRIPTION: > > # The default python_prepare_all(). It applies the patches from PATCHES > > @@ -382,6 +393,8 @@ distutils-r1_python_configure() { > > distutils-r1_python_compile() { > > debug-print-function ${FUNCNAME} "${@}" > > > > + _distutils-r1_copy_egg_info > > + > > esetup.py "${@}" > > } > > > > -- > > 1.8.3.2 > > > > I don't think there is any point in copying egg-info *files* (created > via distutils); we only seem to run into issues with setuptools and > the egg-info directories. You mean to use '-type d' here? -- Best regards, Michał Górny