From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 53BA01381F3 for ; Wed, 21 Aug 2013 20:01:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F3CAFE0C48; Wed, 21 Aug 2013 20:01:44 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 677A6E0C48 for ; Wed, 21 Aug 2013 20:01:44 +0000 (UTC) Received: from localhost (77-254-183-247.adsl.inetia.pl [77.254.183.247]) (using SSLv3 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 39F1533DA7B; Wed, 21 Aug 2013 20:01:42 +0000 (UTC) Date: Wed, 21 Aug 2013 22:01:45 +0200 From: =?UTF-8?B?TWljaGHFgiBHw7Nybnk=?= To: Mike Gilbert Cc: gentoo-python , Gentoo Python Project Subject: Re: [gentoo-python] Re: [PATCH distutils-r1 4/4] Copy egg-info files in python_prepare_all(). Message-ID: <20130821220145.31d73e21@gentoo.org> In-Reply-To: References: <20130821124232.00996a19@gentoo.org> <1377081788-1666-4-git-send-email-mgorny@gentoo.org> <20130821212730.3b423030@gentoo.org> Organization: Gentoo X-Mailer: Claws Mail 3.9.2-dirty (GTK+ 2.24.20; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Discussions centering around the Python ecosystem in Gentoo Linux X-BeenThere: gentoo-python@gentoo.org X-BeenThere: gentoo-python@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA512; boundary="Sig_/6URtVwtLE+WvTjHiQSSUzzK"; protocol="application/pgp-signature" X-Archives-Salt: 5ceb1396-ded2-4636-98ae-0a29c38801cd X-Archives-Hash: bf3c66e0e5c6df66ce2fc8bf6504dd62 --Sig_/6URtVwtLE+WvTjHiQSSUzzK Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Dnia 2013-08-21, o godz. 15:33:12 Mike Gilbert napisa=C5=82(a): > On Wed, Aug 21, 2013 at 3:27 PM, Micha=C5=82 G=C3=B3rny wrote: > > Dnia 2013-08-21, o godz. 14:31:01 > > Mike Gilbert napisa=C5=82(a): > > > >> On Wed, Aug 21, 2013 at 6:43 AM, Micha=C5=82 G=C3=B3rny 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 upstre= am > >> > +# 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 PAT= CHES > >> > @@ -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? > > >=20 > Yes. Added. --=20 Best regards, Micha=C5=82 G=C3=B3rny --Sig_/6URtVwtLE+WvTjHiQSSUzzK Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (GNU/Linux) iQJ8BAEBCgBmBQJSFRyqXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ1RUJGMjBGOTk2RkIzQzIyQ0M2RkNBNDBC QUJGMUQ1RkY4QzgxMTBBAAoJELq/HV/4yBEKJPAQAKb43Wn1Mxa2EN8nR4GHZFIj T50C/9Cra7N9pSK0/hn19gNlYeowIp6ajyhpduwySd2abBDI1VfD3zPzopu8vFsV xab6FOFxVRPMJtX7eaWReLL2X70RhSg0BI7ViI/snpvuA9hWS+0v40z++CjblH3S lKLR5zU7J3goqKarLw0kRmJw/jd2dZfVownNL1Exww7hx2Jb9cjrjMwOuJc4lV4t YHkesVOPIoNDTH6scvsjC7Xac5q87/ILypdQbQgkV5sm6JQ+48bn0jveGZtanJkJ /nEMaj1Sl6AdezSd/Kz27jtZWXfrYuNYVmygQbCYd+hzybt7bYc9eZytlvIoiqQO 4ZWKzKucCsjSsG0EBf2REvFEFF1gtu6LM7IlX4OC7fRntaDQKxl66OioA965IlrC Mtw4fwH5ZgT0sK1PzESiO3iCLFFASk5P9sFWCfbj3uqALLC6ql5fQjbYncS/YVaL UBOJ60XCRNAm2TRGLz2Ug/++5zb22qhVtbN9Xa4DeKigMyFENW73zG2sj9GLKFBR 131djxYJdM4dDZBUJTPcR8WMP07sy9an8pru35LYm5nxtKM3vAr9LmreLxGiL8Ye ql84MkP2veDMks++6fCaonIg6uqYKQAAVlahTwsXj8HjpcOchGSlE//A7jY9K/Ud SFcirJNuyVOoHefrl2qs =lTZU -----END PGP SIGNATURE----- --Sig_/6URtVwtLE+WvTjHiQSSUzzK--