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 52DAC138010 for ; Sun, 2 Sep 2012 19:01:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 80CA021C011; Sun, 2 Sep 2012 19:01:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4079521C011 for ; Sun, 2 Sep 2012 19:01:21 +0000 (UTC) Received: from pomiocik.lan (213-238-98-26.adsl.inetia.pl [213.238.98.26]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 8D71B33D8B3; Sun, 2 Sep 2012 19:01:19 +0000 (UTC) Date: Sun, 2 Sep 2012 21:02:21 +0200 From: =?UTF-8?B?TWljaGHFgiBHw7Nybnk=?= To: Mike Gilbert Cc: gentoo-python@lists.gentoo.org Subject: Re: [gentoo-python] Python 3 in Gentoo Message-ID: <20120902210221.2166c1e9@pomiocik.lan> In-Reply-To: References: <5015EDC2.202@gentoo.org> <50295078.7030104@gentoo.org> <50434F32.7070303@gentoo.org> <20120902193405.1700f85f@pomiocik.lan> Organization: Gentoo X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.11; 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-SHA256; boundary="Sig_/5Yq0hCZJ1s=Sb9XO.qcGrcP"; protocol="application/pgp-signature" X-Archives-Salt: 7629ca99-bfa9-4723-8e45-c75075105956 X-Archives-Hash: 8a7420365f60a2c1a633ebd7154d8534 --Sig_/5Yq0hCZJ1s=Sb9XO.qcGrcP Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sun, 2 Sep 2012 13:54:13 -0400 Mike Gilbert wrote: > On Sun, Sep 2, 2012 at 1:34 PM, Micha=C5=82 G=C3=B3rny > wrote: > > On Sun, 2 Sep 2012 13:16:38 -0400 > > Mike Gilbert wrote: > > > >> On Sun, Sep 2, 2012 at 8:21 AM, Thomas Sachau > >> wrote: > >> > Mike Gilbert schrieb: > >> >> On Mon, Aug 13, 2012 at 3:38 PM, Dirkjan Ochtman > >> >> wrote: > >> >>> On Mon, Aug 13, 2012 at 9:07 PM, Richard Yao > >> >>> wrote: > >> >>>>> Does this seem like a viable option? Is anyone going to > >> >>>>> volunteer to take it from here? > >> >>>> > >> >>>> I can try to make time to make these changes this weekend if > >> >>>> everyone is fine with that. > >> >>> > >> >>> I think we should inform gentoo-dev first. > >> >>> > >> >> > >> >> Just in case someone is waiting for me to take some further > >> >> actions on this, please don't wait on me. I really don't have > >> >> the motivation to carry this plan any further. > >> >> > >> >> If someone else wants to carry the torch, I am happy to assist. > >> >> > >> >> > >> > > >> > Just to get the right summary: > >> > > >> > The plan is now to replace all dependencies in ebuilds, which > >> > have either "dev-lang/python" or something like > >> > ">=3Ddev-lang/python-X.Y" to use "virtual/python" instead? > >> > > >> > >> That's right. > >> > >> > What about versioned dependencies exluding python versions still > >> > in the main tree like ">=3Ddev-lang/python-2.7"? > >> > > >> > >> In this case the virtual would not work. Instead, it could be > >> replaced with this: > >> > >> || ( =3Ddev-lang/python-2.7* =3Ddev-lang/python-3* ) > >> > >> Similarly, >=3Ddev-lang/python-2.6 could be replaced with this: > >> > >> || ( =3Ddev-lang/python-2.7* =3Ddev-lang/python-2.6* > >> =3Ddev-lang/python-3* ) > > > > You could go with virtual/python-2.7, -2.6, -2.5 being an > > appropriate minimal version. > > >=20 > I gave that idea some thought, but I think it would be a somewhat > confusing (it makes my head hurt). >=20 > There are actually a few ways I could see a versioned virtual being > implemented; can you articulate exactly what each virtual version > would have in RDEPEND and how it would be used in other ebuilds? Well, one not-so-crazy idea is that we have: virtual -2.5, SLOT=3D"2.5+": || ( =3Dpython-2* =3Dpython-3* ) virtual -2.6, SLOT=3D"2.6+": || ( python:2.7 python:2.6 =3Dpython-3* ) virtual -2.7, SLOT=3D"2.7+": || ( python:2.7 =3Dpython-3* ) # optioanlly, I think it may be nicer than =3Dpython-3* in ebuilds virtual -3.1, SLOT=3D"3.1+": =3Dpython-3* It's a bit hacky but with it, you can then do: RDEPEND=3D"virtual/python:2.6+" which is quite self-explanatory. Alternatively, we could use some recurrency :D. virtual -3.1, SLOT=3D"3.1+": =3Dpython-3* virtual -2.7, SLOT=3D"2.7+": || ( python:2.7 virtual/python:3.1+ ) virtual -2.6, SLOT=3D"2.6+": || ( virtual/python:2.7+ python:2.6 ) virtual -2.5, SLOT=3D"2.5+": || ( virtual/python:2.6+ python:2.5 ) --=20 Best regards, Micha=C5=82 G=C3=B3rny --Sig_/5Yq0hCZJ1s=Sb9XO.qcGrcP Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iJwEAQEIAAYFAlBDrT0ACgkQfXuS5UK5QB2+nAP9F/h4sr9yg8lXJWe/cckiex/U L314kulUhm/+tBzv1ktdutkZuPqOQjVNVY4b5Ktcr714D/yHRDju8FGPvBtMwEY5 CHxdjeBQnCCa3tkzrM9WFthP9jXWcmpIHNNsfFhbqB5UUyBO/h6mozTZ5/pTd32O HPyRLb2mkTXBmFOj+Bg= =kInx -----END PGP SIGNATURE----- --Sig_/5Yq0hCZJ1s=Sb9XO.qcGrcP--