From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1STzZW-0001z2-Rf for garchives@archives.gentoo.org; Mon, 14 May 2012 18:00:39 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E92ABE09C9; Mon, 14 May 2012 18:00:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id A23CCE09C9 for ; Mon, 14 May 2012 18:00:30 +0000 (UTC) Received: from [10.0.0.73] (89-74-60-83.dynamic.chello.pl [89.74.60.83]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: nelchael) by smtp.gentoo.org (Postfix) with ESMTPSA id 5BB421BC0CA; Mon, 14 May 2012 18:00:29 +0000 (UTC) Message-ID: <4FB1483C.3070902@gentoo.org> Date: Mon, 14 May 2012 20:00:28 +0200 From: Krzysztof Pawlik Organization: Gentoo User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120501 Thunderbird/12.0.1 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 To: Nikolaj Sjujskij CC: gentoo-python@lists.gentoo.org Subject: Re: [gentoo-python] New eclass for Python References: <4F4D4380.9070909@gentoo.org> <4FAE35B4.8010601@gentoo.org> <20120512192022.3afd848c@pomiocik.lan> <4FAEC8EC.5030007@gentoo.org> <4FB12F03.4080000@gentoo.org> In-Reply-To: X-Enigmail-Version: 1.5pre Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig6C216F723E36838AF31F03A8" X-Archives-Salt: 170406c0-3669-47fc-be89-b47b4a350c45 X-Archives-Hash: a1ff6fa09945a1bdd10b32436bd3b318 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6C216F723E36838AF31F03A8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 14/05/12 19:42, Nikolaj Sjujskij wrote: > Den 2012-05-14 20:12:51 skrev Krzysztof Pawlik : >=20 >> On 13/05/12 21:57, Dirkjan Ochtman wrote: >>> On Sat, May 12, 2012 at 10:32 PM, Mike Gilbert w= rote: >>>> Why not emulate php/ruby and set a default value in the base profile= ? >>>> See profiles/base/make.defaults. >>>> >>>> I think PYTHON_TARGETS=3D"python2_7 python3_2" would be a reasonable= choice. >>> >>> Yeah, I think we should provide a default value, and this default >>> value looks good to me. >> >> Feel free to do so :) I would disagree with adding py3 to default, but= it's >> only me. > It would be pretty strange if we had had Py3k as default Python (i.e. = in > stage3) and PYTHON_TARGETS for another version altogether. I don't have Py3 installed at all on all my machines. > And how would new eclass behave in such case? Just-out-of-stage3 system= would > have only Python 3.2 installed, but PYTHON_TARGETS=3D"python2_7 python3= _2". Let's > say user tries to: > # emerge -av pygments > Of course, assuming dev-python/pygments had been ported to new eclass. = Would > python-distutils-ng handle this correctly and transparently? Without ob= scure > errors like "You wants Python 2.7 but haz no Python 2.7"? Without pulli= ng > dev-lang/python:2.7 in? If not, I call this serious usability regressio= n. It seems you have no clue how this eclass works. If you have only py3 ins= talled, and you set PYTHON_TARGETS=3D"python2_7" then dev-lang/python:2.7 will be= added to DEPEND and installed. The user asked to install for py2:7 so he will get this done. It's not a usability regression - it's expected behaviour: user wants to build for F= OO:X.Y then the eclass adds FOO:X.Y to DEPEND. I fail to see how would you like to "correctly and transparently" (whatev= er it means to you) do it. If you don't accept as a solution an error message o= r pulling in py2:7 then there's no other way - you either install missing dependencies or die with an error, no third way. --=20 Krzysztof Pawlik key id: 0xF6A80E46 desktop-misc, java, vim, kernel, python, apache... --------------enig6C216F723E36838AF31F03A8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCgAGBQJPsUg8AAoJEBZyv1r2qA5GSgUH/Re4Dw0x/YEHUVf9etYiGmme zG480vtTjX8syXb12klyaXlErNqNBoih9r83jURVR8DFifWWqV/eShwkaLM90O0C 1RzUu/RSGmQMGi7noQ4sv/rDRqP83LW0vD3tcGlNwOsRvVYM57X/ywIz1Xvmx0Q4 D77sMQdygjOFhbBwa2TvORqxeFMs//UpxPDPgyT3LBmzo6qbTcF2jEcdf8Zyr8tg 4Uw3RrhX7bEK2fj6M3XZdD1AxWHW2kPbKzm7UoSeoGEAlosna6WizbzjwymrCzaB UKFyTEH3EuXWb5A/lIngts12YUbZEkEfpI4PA02K96GtN28nfLWNYfQsNcegNmE= =oK9+ -----END PGP SIGNATURE----- --------------enig6C216F723E36838AF31F03A8--