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 1NUJ5S-00008M-0m for garchives@archives.gentoo.org; Mon, 11 Jan 2010 12:09:34 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9934AE093B for ; Mon, 11 Jan 2010 12:09:33 +0000 (UTC) Received: from hera.cwi.nl (hera.cwi.nl [192.16.191.8]) by pigeon.gentoo.org (Postfix) with ESMTP id 7BC8DE0874 for ; Mon, 11 Jan 2010 10:13:13 +0000 (UTC) Received: from gentoo.org (pegasus.ins.cwi.nl [192.16.196.142]) by hera.cwi.nl with ESMTP id o0BADClC015201 for ; Mon, 11 Jan 2010 11:13:12 +0100 (CET) Date: Mon, 11 Jan 2010 11:14:40 +0100 From: Fabian Groffen To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Re: PYTHON_DEPEND - Suggested replacement for NEED_PYTHON Message-ID: <20100111101440.GB886@gentoo.org> Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <201001100930.20355.Arfrever@gentoo.org> <20100110205601.GY832@gentoo.org> <201001110126.25811.Arfrever@gentoo.org> <20100111075030.GA452@gentoo.org> 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 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (SunOS 5.11, VIM - Vi IMproved 7.2) Organization: Gentoo Foundation, Inc. X-Archives-Salt: efb15415-f718-416d-854f-6f0fbb0bac44 X-Archives-Hash: de6764c3eeb32dc0292c203f3051590c On 11-01-2010 08:29:32 +0000, Duncan wrote: > Fabian Groffen posted on Mon, 11 Jan 2010 08:50:30 +0100 as excerpted: > > > On 11-01-2010 01:25:45 +0100, Arfrever Frehtes Taifersar Arahesis wrote: > >> > Can you explain the intended use of this variable, and why normal > >> > DEPEND is not sufficient? > >> > >> PYTHON_DEPEND is intented to simplify specification of dependency on > >> Python. > >> > >> PYTHON_DEPEND="2:2.5" is shorter than: DEPEND="|| ( > >> =dev-lang/python-2.7* =dev-lang/python-2.6* =dev-lang/python-2.5* )" > > > > So if there is enough space to express the dependency with the current > > syntax, is it worth introducing a new shorthand for it then? > > > > Also for this example, why does 2:2.5 expand to 2.7, 2.6 and 2.5? I > > would have expected 2.0 ... 2.5. Maybe the language isn't as intuitive > > then as Sebastian pointed out. > > Initially intuitive, perhaps not, but reasonably easy after reading the > explanation: > > The first position is major python version, the second if present, > minimal version (within that major), so it can be read as =>version, the > third if present, maximum version (within that major), so it can be read > as <=. > > Thus, the above "2:2.5" means major version 2, minimal version 2.5 (no > maximum version within that major), so 2.5+. what's wrong with ">=2.5 && <3.0" then? -- Fabian Groffen Gentoo on a different level