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 1NU48O-0007me-VM for garchives@archives.gentoo.org; Sun, 10 Jan 2010 20:11:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 94019E08C5 for ; Sun, 10 Jan 2010 20:11:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 7D50CE063C for ; Sun, 10 Jan 2010 18:41:58 +0000 (UTC) Received: from [192.168.0.3] (e179043211.adsl.alicedsl.de [85.179.43.211]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id C96871B4032 for ; Sun, 10 Jan 2010 18:41:57 +0000 (UTC) Message-ID: <4B4A1F73.7040603@gentoo.org> Date: Sun, 10 Jan 2010 19:41:55 +0100 From: Sebastian Pipping User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20100103 Thunderbird/3.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] PYTHON_DEPEND - Suggested replacement for NEED_PYTHON References: <201001100930.20355.Arfrever@gentoo.org> In-Reply-To: <201001100930.20355.Arfrever@gentoo.org> X-Enigmail-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Archives-Salt: 625944eb-cf2d-4e36-a345-df3ff1c5c58d X-Archives-Hash: 40ca9b2d7921e258fe8a1c8647728c37 On 01/10/10 09:29, Arfrever Frehtes Taifersar Arahesis wrote: > I would like to suggest introduction of support for PYTHON_DEPEND variable, which > would be a better replacement for NEED_PYTHON variable. NEED_PYTHON variable > does not allow to specify that e.g. only versions of Python 2 are accepted. > (Eventually PYTHON_DEPEND variable will have to be set only in ebuilds of packages > not supporting installation for multiple versions of Python.) > > Suggested syntax: > PYTHON_DEPEND="[USE_flag?] [X[:[Y][:[Z]]]]" > , [optional_component] > X - Major version of Python ('2' or '3') or '*'. > Y - Minimal version of Python in the form of ${major_version}.${minor_version}. > Z - Maximal version of Python in the form of ${major_version}.${minor_version}. > It will be probably very rarely used. > > Examples: > PYTHON_DEPEND="2" > Dependency on any version of Python 2. > > PYTHON_DEPEND="2:2.5" > Dependency on Python 2.7, 2.6 or 2.5. > > PYTHON_DEPEND="*:2.6" > Dependency on Python 3.2, 3.1, 3.0, 2.7 or 2.6. > > PYTHON_DEPEND="2:2.7 3:3.1" > Dependency on Python 3.2, 3.1 or 2.7. > > PYTHON_DEPEND="2:2.5:2.6" > Dependency on Python 2.6 or 2.5. > > PYTHON_DEPEND="2::2.6" > Dependency on Python 2.6, 2.5 or 2.4. > > PYTHON_DEPEND="python? 2" > Dependency on any version of Python 2 when "python" USE flag is enabled. > While I don't object improvements or changes on that front at all: - How are SUPPORT_PYTHON_ABIS and RESTRICT_PYTHON_ABIS affected by NEED_PYTHON now and by PYTHON_DEPEND in the future? - The proposed approach doesn't look intuitive to me from a quick view, sorry: Neither the examples nor the grammar. I didn't give it that much time to be fair, though. Sebastian