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 3F3731381F3 for ; Wed, 21 Aug 2013 14:13:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6EAB6E0B28; Wed, 21 Aug 2013 14:13:25 +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 DFB78E0B28 for ; Wed, 21 Aug 2013 14:13:24 +0000 (UTC) Received: from mail-wi0-x233.google.com (mail-wi0-x233.google.com [IPv6:2a00:1450:400c:c05::233]) (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 9B7FD33EB72 for ; Wed, 21 Aug 2013 14:13:23 +0000 (UTC) Received: by mail-wi0-f179.google.com with SMTP id hr7so509936wib.0 for ; Wed, 21 Aug 2013 07:13:21 -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=6jR7gPljCjuB+HGbCKD1kSSt/t4pH6JQN+3p3sQyQA4=; b=QrNeNDrluZVKLid4ldbO4uEBsEXC0qYcUIw4OvXrwk9rIeZqSLihIar4jMcReezwCv 5Fllbx5PelYmcUDLKjAAMiXNH8ys+WjWKX+0eBit8JB/N1fH5cljtvz7ZpylMDklzBiQ VL+eSb5UgaeU4KuNhDlTH195uCZblSpcLM7Yf1zIKMQIrr8t636a5umFJXRfKY+uNGgw nMP4mGperu1iM8MoyzVAWSB/dMV6VkqdDkKln/7rX/ms+iiHLy5upIHno/F/qXkjMlP/ ABUS4nB5k+pmFwwLw8aWwJZUMtypsSlEUu+husqfuxEWXxmFez0pBo6tw/rThg8ufqTT sLoA== 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.180.208.3 with SMTP id ma3mr13226859wic.12.1377094401299; Wed, 21 Aug 2013 07:13:21 -0700 (PDT) Received: by 10.194.39.231 with HTTP; Wed, 21 Aug 2013 07:13:21 -0700 (PDT) In-Reply-To: <1377081788-1666-3-git-send-email-mgorny@gentoo.org> References: <20130821124232.00996a19@gentoo.org> <1377081788-1666-3-git-send-email-mgorny@gentoo.org> Date: Wed, 21 Aug 2013 10:13:21 -0400 Message-ID: Subject: Re: [gentoo-python] [PATCH distutils-r1 3/4] Describe _distutils-r1_disable_ez_setup() using eclassdoc. 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: de2176a2-75db-4866-b49f-079c73a3f562 X-Archives-Hash: 872c887cebafcb10074ce1d3bb5134e2 On Wed, Aug 21, 2013 at 6:43 AM, Micha=C5=82 G=C3=B3rny = wrote: > --- > gx86/eclass/distutils-r1.eclass | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.e= class > index fba7634..e95df3e 100644 > --- a/gx86/eclass/distutils-r1.eclass > +++ b/gx86/eclass/distutils-r1.eclass > @@ -308,6 +308,10 @@ distutils_install_for_testing() { > esetup.py "${add_args[@]}" > } > > +# @FUNCTION: _distutils-r1_disable_ez_setup > +# @DESCRIPTION: > +# Stub out ez_setup.py and distribute_setup.py to prevent packages > +# from trying to download a local copy of setuptools. > _distutils-r1_disable_ez_setup() { > local stub=3D"def use_setuptools(*args, **kwargs): pass" > if [[ -f ez_setup.py ]]; then > @@ -340,7 +344,6 @@ distutils-r1_python_prepare_all() { > fi > fi > > - # Prevent packages from downloading their own copy of setuptools > _distutils-r1_disable_ez_setup > > if [[ ${DISTUTILS_IN_SOURCE_BUILD} && ! ${DISTUTILS_SINGLE_IMPL} = ]] > -- > 1.8.3.2 > > Let's add @INTERNAL before @DESCRIPTION.