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 F2FD51381F3 for ; Wed, 21 Aug 2013 19:33:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8CF97E0DA3; Wed, 21 Aug 2013 19:33:17 +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 0E6D2E0DA3 for ; Wed, 21 Aug 2013 19:33:16 +0000 (UTC) Received: from mail-we0-x22c.google.com (mail-we0-x22c.google.com [IPv6:2a00:1450:400c:c03::22c]) (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 048BF33EB31 for ; Wed, 21 Aug 2013 19:33:15 +0000 (UTC) Received: by mail-we0-f172.google.com with SMTP id t60so834400wes.31 for ; Wed, 21 Aug 2013 12:33:12 -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=eO/grrBh12xGMMaljfOuBm56MPY+9Wly9XAev/z4vJQ=; b=X/kivnX6AiBQf+QQrLQrGRfIzSoubifit5YO11NTfpMZ/eUwwTJVRgKyVMaD/L5LlK /+gpfm5zAeLPVDatDuQ4g0xRtP+66msxoR3EfJ7jvw9VRXzagntwbVZfXfNSmNeKR9Kk TAG1S9+BNzFSrY/XVHfRMnC0pvfG1/aCxNpZ5K8FBvxAQ0gIqOGmzyoJoy0MYC56tBG3 GAVHC0jYfqg8dBdZMSnxrCSneSs5SKDJOhCWqyTbdsGgME7AXgB8NoZfHPVehQFZ0ZH7 DSwhqkrzeWZL00bVDmCWzkxzT5IYZuf72AC+OTV23YJ6pk9ZwnvT3EUuWfaKHQY2Nzxs pIpQ== 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.24.168 with SMTP id v8mr7150979wjf.28.1377113592690; Wed, 21 Aug 2013 12:33:12 -0700 (PDT) Received: by 10.194.39.231 with HTTP; Wed, 21 Aug 2013 12:33:12 -0700 (PDT) In-Reply-To: <20130821212730.3b423030@gentoo.org> References: <20130821124232.00996a19@gentoo.org> <1377081788-1666-4-git-send-email-mgorny@gentoo.org> <20130821212730.3b423030@gentoo.org> Date: Wed, 21 Aug 2013 15:33:12 -0400 Message-ID: Subject: Re: [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: d06dba8e-1e47-4ff7-83bf-46a3add722f6 X-Archives-Hash: 027359d2b352117130f5e5884fd5eca3 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-r= 1.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 PATCH= ES >> > @@ -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? > Yes.