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 1QtLYV-00050r-9g for garchives@archives.gentoo.org; Tue, 16 Aug 2011 15:27:51 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8CF0D21C1C5; Tue, 16 Aug 2011 15:27:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 2F9A221C1C5 for ; Tue, 16 Aug 2011 15:27:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 9A4A41B4066 for ; Tue, 16 Aug 2011 15:27:34 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Score: -4.946 X-Spam-Level: X-Spam-Status: No, score=-4.946 required=5.5 tests=[AWL=1.653, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tLYqZGBrrA4Q for ; Tue, 16 Aug 2011 15:27:28 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id C39711B4064 for ; Tue, 16 Aug 2011 15:27:26 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QtLY2-00056q-0S for gentoo-devhelp@gentoo.org; Tue, 16 Aug 2011 17:27:22 +0200 Received: from athedsl-387786.home.otenet.gr ([79.131.66.200]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Aug 2011 17:27:22 +0200 Received: from realnc by athedsl-387786.home.otenet.gr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Aug 2011 17:27:22 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-devhelp@lists.gentoo.org From: Nikos Chantziaras Subject: [gentoo-devhelp] Re: PYTHON_DEPEND syntax Date: Tue, 16 Aug 2011 18:27:43 +0300 Organization: Lucas Barks Message-ID: References: <20110816152144.GK8077@ohnopublishing.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Development-related help X-BeenThere: gentoo-devhelp@gentoo.org X-BeenThere: gentoo-devhelp@lists.gentoo.org Reply-To: gentoo-devhelp@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: athedsl-387786.home.otenet.gr User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110705 Thunderbird/5.0 In-Reply-To: <20110816152144.GK8077@ohnopublishing.net> X-Archives-Salt: X-Archives-Hash: a76f08ba7613bf6008e78e5586adc949 On 08/16/2011 06:21 PM, Nathan Phillip Brink wrote: > On Tue, Aug 16, 2011 at 05:25:47PM +0300, Nikos Chantziaras wrote: >> I'm not sure I understand PYTHON_DEPEND. If I have a package that works >> with Python 2.6 and newer (like 2.7), but is incompatible with 3.x >> versions, how do I state that? What I want is: >> >> >= 2.6&& < 3 > > I think that the correct syntax for this would be > PYTHON_DEPEND="2:2.6" if I'm reading the docs for > _python_parse_PYTHON_DEPEND() correctly. > > Are you installing a python module or just something which uses > python? For a module, you will need to define PYTHON_RESTRICT_ABIS to > "2.[1-5] 3" after setting SUPPORT_PYTHON_ABIS=1 and doing all the > magic to support multiple ABIs (which might be none if you're using > distutils). > > There is useful information at > http://www.gentoo.org/proj/en/Python/developersguide.xml too. Thanks. I tend to RTFM less these days directly on Gentoo.org since most of the time the docs are outdated and don't apply to what I'm looking for. But in this case, they helped :-)