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 8793B1389E2 for ; Sun, 30 Nov 2014 21:20:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 19C77E08B2; Sun, 30 Nov 2014 21:20:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9C7CDE08B2 for ; Sun, 30 Nov 2014 21:20:48 +0000 (UTC) Received: from pomiot.lan (mgorny-1-pt.tunnel.tserv28.waw1.ipv6.he.net [IPv6:2001:470:70:353::2]) (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 907BD34001A; Sun, 30 Nov 2014 21:20:46 +0000 (UTC) Date: Sun, 30 Nov 2014 22:20:39 +0100 From: =?ISO-8859-2?B?TWljaGGzIEfzcm55?= To: Mike Gilbert Cc: gentoo-python , Gentoo Python Project Subject: Re: [gentoo-python] Re: The future of PYTHON_SINGLE_TARGET Message-ID: <20141130222039.4394ce03@pomiot.lan> In-Reply-To: References: <20141128235927.771a6e8b@pomiot.lan> <20141130215031.2b183cdf@pomiot.lan> Organization: Gentoo X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.25; 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_/PaF3W=pv5CM1n2o0PEg6RQv"; protocol="application/pgp-signature" X-Archives-Salt: cc46b828-99dc-4d3f-bbfa-af81e627400a X-Archives-Hash: ead198f51f4f831caf62bbceed4b2693 --Sig_/PaF3W=pv5CM1n2o0PEg6RQv Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Dnia 2014-11-30, o godz. 16:02:35 Mike Gilbert napisa=B3(a): > On Sun, Nov 30, 2014 at 3:50 PM, Micha=B3 G=F3rny wro= te: > >> > B. they cause issues with REQUIRED_USE on other packages (like libpe= as > >> > that supports only one version of python2 and one of python3). Even > >> > though PYTHON_SINGLE_TARGET results in effective use of a single imp= l, > >> > PYTHON_TARGET USE-dep requests full PYTHON_TARGETS match on the dep. > >> > Therefore, the user needs to disable other implementations anyway to > >> > get the expected result. > >> > >> I don't understand this part. Can you please explain it? Maybe an exam= ple? > > > > gedit and libpeas, with gedit depending on libpeas. libpeas supports > > one version of Python 2 and one of Python 3, and gedit just one > > in general: > > > > libpeas is REQUIRED_USE=3D?? ( 2.* ) ?? ( 3.* ) > > gedit is REQUIRED_USE=3D^^ ( 3.* ) > > > > So libpeas needs python-r1 with specific REQUIRED_USE. gedit would be > > a candidate for python-single-r1 but... > > > > p-s-r1 enforces ^^ only on PYTHON_SINGLE_TARGET. So I end up with > > something like: > > > > PYTHON_TARGETS=3D"3.3 3.4" PYTHON_SINGLE_TARGET=3D"3.4" > > > > and this enforces dependency on libpeas[3.3,3.4] which contradicts its > > REQUIRED_USE. So we need also REQUIRED_USE=3D^^ ( 3.* ). But basically, > > the whole mess with the second variable doesn't really help here. > > >=20 > What I take away from this is that the libpeas ebuild is really weird: > supporting exactly one python2 and one python3 sounds like a horrible > hack that should be fixed. No, supporting multiple Python versions actually is a horrible hack that causes us much more pain than we need. Any sane binary distro limits itself to Python 2 + Python 3, and that's what libpeas addresses -- the strong incompatibility between P2 and P3 that forces it to have two loaders that link to different Python versions. Of course, we could make it have up to five loaders of which at most two will be practically used but is it worth the effort? We'll introduce incompatibility with plugins that will in turn require modifying every reverse dependency of libpeas. --=20 Best regards, Micha=B3 G=F3rny --Sig_/PaF3W=pv5CM1n2o0PEg6RQv Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJUe4onXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2REJCMDdDQzRGMERBRDA2RUEwQUZFNDFC MDdBMUFFQUVGQjQ0NjRFAAoJELB6GurvtEZOK7MP/jJR2xFAVgl+Ceh2N2qWuVWq O2bWzO5I1RI6MmZR6waNcwBKxNA8U1xEtfjHqjVqOyB3VaVn1gXTl7U7LqifVlM1 w2lxf+sIUin+mSznThh9baocqc00UG4E0KY/yfUH+FX5ixrrDMVA779zdYtPT1Xu ZhFuMJcYNqHZ3lhUOERVqcva2js2S/N10L/4ZHEpV+er15ddF1ns/+yUEf7AXHqL kxJlfVk01OI2wrp73V39vQSBowsUsYH1KpN+qzrS/BGW6nBbqCfASyKBIaD6J/Rs gt4Z+pgpnTG9NwJOjBEG8ECH6Lhs/JnhcsPFAVFdzwUMpX9kWnWadVvbQWYm+ANm Izu+UIi51lQl3Hep4dLUWpU9jdyr72YFM88fiO53mfY/lKUASVyvKCCxv78i5QS6 diZ69awQHDlqxZx12oULGXXjcPc9oQ441kWlHMOq8EmUpSN2npGdZO+MJ9t70Qqe UZ7KoATlmzOf7U0zjvc5nc867QH8+E8er7Ouryxcwzcv/FucFZkfcTxPn1RKN4yt K0lDUzuZvf9lUgk2TLXALwB29LvUA1gCLAvwmiQQt2t+32rl5Vo6GTjQojRRTz21 Ky1miHzHvZGeLavg/lVkh+u+Lf2P1AZx0ACjXDUWYS3rIzrzGZ5UP0V3gRnwqYlC 0hJdoQzp/kxRZO3PJG9g =Jn5X -----END PGP SIGNATURE----- --Sig_/PaF3W=pv5CM1n2o0PEg6RQv--