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 343031381F3 for ; Wed, 21 Aug 2013 19:27:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C466FE0CF5; Wed, 21 Aug 2013 19:27:34 +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 2C91AE0CF5 for ; Wed, 21 Aug 2013 19:27:34 +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 1594A33ECAE; Wed, 21 Aug 2013 19:27:31 +0000 (UTC) Date: Wed, 21 Aug 2013 21:27:30 +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: <20130821212730.3b423030@gentoo.org> In-Reply-To: References: <20130821124232.00996a19@gentoo.org> <1377081788-1666-4-git-send-email-mgorny@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_/iD9IV5NqhR3n7SS88CexMEx"; protocol="application/pgp-signature" X-Archives-Salt: 7ad7fe41-b5a6-4cd4-85b7-7e85df36b77a X-Archives-Hash: ee03581dbaa396b498672fb2350e42da --Sig_/iD9IV5NqhR3n7SS88CexMEx Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 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 > > >=20 > 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 Best regards, Micha=C5=82 G=C3=B3rny --Sig_/iD9IV5NqhR3n7SS88CexMEx Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (GNU/Linux) iQJ8BAEBCgBmBQJSFRSmXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ1RUJGMjBGOTk2RkIzQzIyQ0M2RkNBNDBC QUJGMUQ1RkY4QzgxMTBBAAoJELq/HV/4yBEKKHkQAIzNunEj2FoP6yivpC87vPx7 GsbTXkrLe8FnM60B3qXepxW9iCFIf/6+w8NUGc0ONb+ayykxUbpU5ylqbdIB9ZhK P2Z2+EnkMo6pq4pjOT3a/Z3t+i+XLlOLNWJHc3Yb1mQwIYXBzbaIMUp1ZQbMZFcE ZOYSTVDg16OJ538B+3xIIbWVuDIat6x3Y3Lyqr9e3u7VA/kqNu7IE7eHUus81XCP vH/VrqGO2MmaAU1uwYziYrcmL4uSzLz1W8h7EZclSAPUEacS3ZKgLqVi9hVjgvK3 3OAdDgthYpgmiX4vj8Xew3JLi+WqCiLwfGzKKfxALjaWb472RiuCxZSZv8r0+QzZ 8BaxlhS1OfYowANxP1Bqzf/2xPb7B/EBkhIV5ZTqrQNAa4ZwGEJijVMmr9gUcHxN sEWEQZ1e00mnHO4IP0Xe1S9RmJ9+bxNdOSVXU5j1aONlMty8b6XchniVTw2oMCLD 1J6aKNEt0RyNfkSRcl3RmJfmrA/jFQafW5WJivkD0O8848o49ipNQ6kYLQnDm8MT vwFpJ3CtyvguFz3HH73nAxj9jtvuG7ioIXaNhw4PnX35W8eDanFdCLFbrIkQyzAu EeHAdlyhtTYzvinnD6D/29lXfS2YM/4DzBW4DfWFWv7rVqaIo+ZR/94cdN8gIY07 ZKYhgX38W4n3mxWR9t+X =dOlW -----END PGP SIGNATURE----- --Sig_/iD9IV5NqhR3n7SS88CexMEx--