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 01DD91381F3 for ; Sun, 20 Oct 2013 15:47:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D09C9E0BF1; Sun, 20 Oct 2013 15:47:19 +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 3DC90E0BF1 for ; Sun, 20 Oct 2013 15:47:19 +0000 (UTC) Received: from localhost (77-255-21-180.adsl.inetia.pl [77.255.21.180]) (using SSLv3 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 3B49233F0A9; Sun, 20 Oct 2013 15:47:17 +0000 (UTC) Date: Sun, 20 Oct 2013 17:47:23 +0200 From: =?UTF-8?B?TWljaGHFgiBHw7Nybnk=?= To: Mike Gilbert Cc: gentoo-python Subject: Re: [gentoo-python] [PATCH] Introduce python_setup() as a common name for Python setup function. Message-ID: <20131020174723.55105549@gentoo.org> In-Reply-To: References: <1382254606-26643-1-git-send-email-mgorny@gentoo.org> <20131020171216.7642328f@gentoo.org> Organization: Gentoo X-Mailer: Claws Mail 3.9.2-dirty (GTK+ 2.24.22; x86_64-pc-linux-gnu) 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 Content-Type: multipart/signed; micalg=PGP-SHA512; boundary="Sig_/f7UvfwBEd5ZV+8nGiCrSI91"; protocol="application/pgp-signature" X-Archives-Salt: 93ce7f0d-79be-44a9-80a1-e55fa2a93003 X-Archives-Hash: 0b77f09201d5ab1e11479a1aa0d238b6 --Sig_/f7UvfwBEd5ZV+8nGiCrSI91 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Dnia 2013-10-20, o godz. 11:33:45 Mike Gilbert napisa=C5=82(a): > On Sun, Oct 20, 2013 at 11:12 AM, Micha=C5=82 G=C3=B3rny wrote: > > Dnia 2013-10-20, o godz. 10:53:34 > > Mike Gilbert napisa=C5=82(a): > > > >> On Sun, Oct 20, 2013 at 3:36 AM, Micha=C5=82 G=C3=B3rny wrote: > >> > As described in the ml, the new function does: > >> > > >> > * in python-any-r1, choose and set up the best installed impl, > >> > > >> > * in python-single-r1, read PYTHON_SINGLE_TARGET and set it up, > >> > > >> > * in python-r1, call python_export_best + python_wrapper_setup. > >> > > >> > In other words, it's a common way of getting Python build environment > >> > set up in the ebuild scope. > >> > >> Invoking python_setup from pkg_setup in any eclass seems sub-optimal; > >> especially so in python-any-r1. However, I realize there isn't a great > >> place to put it. > > > > I don't understand. Could you rephrase? > > >=20 > The python stuff is generally only used in "src" phases, so pkg_setup > is the wrong place for it.. As well, it would be better to set up the > python wrappers and environment in a phase where the sandbox and > userpriv are active to prevent permissions problems like we had with > Paludis recently (there's a bug, but I'm not going to look for it). I can understand you but can't really think of a good way of doing this. The only other reasonable phase for this is src_prepare(), and overriding it will result in hell breaking loose... --=20 Best regards, Micha=C5=82 G=C3=B3rny --Sig_/f7UvfwBEd5ZV+8nGiCrSI91 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQJ8BAEBCgBmBQJSY/sLXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2REJCMDdDQzRGMERBRDA2RUEwQUZFNDFC MDdBMUFFQUVGQjQ0NjRFAAoJELB6GurvtEZOg+cQAKgcerCsKtmxIZM5mS8URy2s h0WBKQ/GMx7CIMknEVuHJslBmvk53A0Z2BE47glm3RYqsMyePqSE3UjvkSke05ys jTD7EIIsnUP/tZT6WES6JxRPOs2CUboAYQbWxKYQNjljCE/mhBzXgM6a2EevbhZx LB8/GMJqTnWpozmy51HcOSrVFURPtzE8+US6hWvFt33LkU5546FdCYQadIDxNTPP vFTUI0zwKF5VluoK8uTHxGN4r+zc6TGNM3nIaSr+pbdjQca1IitLBvygfqe68qtr o7/Ltk/cpjejWQT/h2LDz3F+BZ9+agBxOwHDGJBYxTcKbXzvJiB5enGtB8twJblz jlRbtZ7GqE8K3niGLbulKAOyaYJR6DnJj9DWVMxjcFAPh0LBuhI+oWJ2NnlN0pWA bTh2tgVfmuY9U3Dgqpryjd38TnZ41VRiL2jLl7ZVbhubcVpgklZVji7Muh6tq9Jl EeYTIf/fAV6ZUv8DxkN9d/hFdgoX0Ly8seh+rKfkeXqWkQe1PnZmP0b7le/RLt3M EEex1ojwXwVJxKgBCt1+jQW5DZ4HKtS/LecqNPOdvM6gSkZNnoVoMRmGWKwSJkfx URCoMuwz4tOBdDkAotOe5jy6YQsn+ej2nykElQYdagnn8G1RHQG9W6v3LyX/FYRS j1FxWfYOK59ZmgzngWbH =wdEf -----END PGP SIGNATURE----- --Sig_/f7UvfwBEd5ZV+8nGiCrSI91--