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 B4A811381F3 for ; Wed, 21 Aug 2013 18:31:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4B440E0D82; Wed, 21 Aug 2013 18:31:07 +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 C8A81E0D82 for ; Wed, 21 Aug 2013 18:31:06 +0000 (UTC) Received: from mail-we0-x235.google.com (mail-we0-x235.google.com [IPv6:2a00:1450:400c:c03::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: floppym) by smtp.gentoo.org (Postfix) with ESMTPSA id 6F1CE33EC42 for ; Wed, 21 Aug 2013 18:31:05 +0000 (UTC) Received: by mail-we0-f181.google.com with SMTP id q57so731958wes.26 for ; Wed, 21 Aug 2013 11:31:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=ZYYv4SoN1T2hwzdI1ZpKydwTUIhLLPvzCZgTA5oFJ3s=; b=aP4g8oVgBL3IUsPkxTytDIlbZp/dzB7b7GUAeirLR6PZYl2G4V5bKbTrPtYOJ0OsUR 7y0W9cF2XC51Y7kqYDYxxP/RPSzRXNv5nsy2dQeU+UPHKto7NnN9BNIS2iMd3ivH8hAZ AWkkiTEU1S9kG9M1+krC+6VNK+LNW5wto1Ou7UENtYpLhESJsP5PAcB4rql7+uLSy6EO d7PVEZX1CNiElI98ZpRh/9aiD1H0QVX7k36jcleTx6974C0AC9g2inqtZ2enoiomWNf4 +DRJ9Y5XrsQZpexJ8DqwEyoYFShathXsdCICPc85RUCn0TehfoGpOBRIXwZQz9rfw0y5 Rc8w== 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 X-Received: by 10.194.235.138 with SMTP id um10mr6944169wjc.30.1377109861845; Wed, 21 Aug 2013 11:31:01 -0700 (PDT) Received: by 10.194.39.231 with HTTP; Wed, 21 Aug 2013 11:31:01 -0700 (PDT) In-Reply-To: <1377081788-1666-4-git-send-email-mgorny@gentoo.org> References: <20130821124232.00996a19@gentoo.org> <1377081788-1666-4-git-send-email-mgorny@gentoo.org> Date: Wed, 21 Aug 2013 14:31:01 -0400 Message-ID: Subject: [gentoo-python] Re: [PATCH distutils-r1 4/4] Copy egg-info files in python_prepare_all(). From: Mike Gilbert To: =?UTF-8?B?TWljaGHFgiBHw7Nybnk=?= Cc: gentoo-python , Gentoo Python Project Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 6b713908-b2ee-4953-9267-0c8e232b1db4 X-Archives-Hash: d48e70ce4ea4312b10c77fbdb6d88ec2 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.e= class > 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}"/ ';' || di= e > +} > + > # @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. On the other hand, I guess it doesn't hurt either way.