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 899251381F3 for ; Wed, 21 Aug 2013 10:43:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 25F13E0C9D; Wed, 21 Aug 2013 10:43:12 +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 B6E2CE0C9D for ; Wed, 21 Aug 2013 10:43:11 +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 D6F5A33ECA5; Wed, 21 Aug 2013 10:43:09 +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 4/4] Copy egg-info files in python_prepare_all(). Date: Wed, 21 Aug 2013 12:43:08 +0200 Message-Id: <1377081788-1666-4-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: d462d9a3-a4ea-49ae-92ec-099c3195da70 X-Archives-Hash: e022ee8822efc3f91c016000f17d9c7a --- 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