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 E1C031381F3 for ; Wed, 21 Aug 2013 10:43:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 81290E0C8D; Wed, 21 Aug 2013 10:43:10 +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 1DC81E0C9F for ; Wed, 21 Aug 2013 10:43:10 +0000 (UTC) Received: from pomiot.lan (77-254-183-247.adsl.inetia.pl [77.254.183.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 50F5533EC95; Wed, 21 Aug 2013 10:43:08 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-python@lists.gentoo.org Cc: python@gentoo.org, =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-python] [PATCH distutils-r1 3/4] Describe _distutils-r1_disable_ez_setup() using eclassdoc. Date: Wed, 21 Aug 2013 12:43:07 +0200 Message-Id: <1377081788-1666-3-git-send-email-mgorny@gentoo.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <20130821124232.00996a19@gentoo.org> References: <20130821124232.00996a19@gentoo.org> 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 X-Archives-Salt: 7cfdd1e5-f14b-4fda-89c3-a7df41d2393c X-Archives-Hash: e7b435848b203f48780b8a97a3319e2d --- 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.eclass 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="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