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 1NTugu-0001Nf-Ol for garchives@archives.gentoo.org; Sun, 10 Jan 2010 10:06:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5BC45E07F4 for ; Sun, 10 Jan 2010 10:06:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 2AEF4E063F for ; Sun, 10 Jan 2010 08:27:31 +0000 (UTC) Received: from afta-gentoo.localnet (ip-85-198-235-97.broker.com.pl [85.198.235.97]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 9198E1B40DB for ; Sun, 10 Jan 2010 08:27:30 +0000 (UTC) From: Arfrever Frehtes Taifersar Arahesis To: Gentoo Development Subject: [gentoo-dev] PYTHON_DEPEND - Suggested replacement for NEED_PYTHON Date: Sun, 10 Jan 2010 09:29:28 +0100 User-Agent: KMail/1.12.4 (Linux/2.6.32-tuxonice-AFTA; KDE/4.3.4; x86_64; ; ) 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: multipart/signed; boundary="nextPart1320797.AXMegHN6pN"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201001100930.20355.Arfrever@gentoo.org> X-Archives-Salt: 423d547a-12c1-443e-b3e6-ad10d75be700 X-Archives-Hash: 6b25fd02637d9d53bb64defa3c85c5b7 --nextPart1320797.AXMegHN6pN Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 p= ackages not supporting installation for multiple versions of Python.) Suggested syntax: PYTHON_DEPEND=3D"[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_v= ersion}. Z - Maximal version of Python in the form of ${major_version}.${minor_v= ersion}. It will be probably very rarely used. Examples: PYTHON_DEPEND=3D"2" Dependency on any version of Python 2. PYTHON_DEPEND=3D"2:2.5" Dependency on Python 2.7, 2.6 or 2.5. PYTHON_DEPEND=3D"*:2.6" Dependency on Python 3.2, 3.1, 3.0, 2.7 or 2.6. PYTHON_DEPEND=3D"2:2.7 3:3.1" Dependency on Python 3.2, 3.1 or 2.7. PYTHON_DEPEND=3D"2:2.5:2.6" Dependency on Python 2.6 or 2.5. PYTHON_DEPEND=3D"2::2.6" Dependency on Python 2.6, 2.5 or 2.4. PYTHON_DEPEND=3D"python? 2" Dependency on any version of Python 2 when "python" USE flag is enabled. =2D-=20 Arfrever Frehtes Taifersar Arahesis --nextPart1320797.AXMegHN6pN Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iQIcBAABAgAGBQJLSZAbAAoJEFtpjAED8H0YgWUQAJE/6enQdKdTpE0G/GiUaAcp HSNHn0hhY+bnDYh/BR8kly7fTOUXQdAUuWAHUN3MyQtXp02JQuenFzqJbWbOlgiL AjEk5gyqa6tyZS1MthEPOoAs/EhMsLMWpewucSCXT8xqqbOuhPo10VpREj/pTxMS +6AJmPi5Q3HqKYio4T5SWO9kEiihZrxJUsmxmZbpQGnbVdGX03GLdM2adRiZKPHm fPZ32oJC7HpCvPillGd78HW/rjeaJ7OL9F3yvDTVntpJ0pFKsW8o8J6DOL95zLXU R/fp+pWu8rK2u51IO4q9JgIad6S8rvBarNDMyhGHG8Lij7tQZrI7pVa6rW2qjE56 WVEmc9yusI8RXUjOPR0wQjscJTBrax7esFNzLfrv/yiGk3DdsXV4rMq6+XaaSfti p+sd9yq7CXBFmYdsVnK1/qdzv1u98HkQGdDFLws8YIE9FgyCuKUHTd2TNE6WG0h1 yUYSYCCamTmLvasj6xZvL0F1bGPe03pHaJKMQJfk6BGZX2SSlffxBVU5GWD9Ntdk agl7OF+FP9LqfiBcHls0+ZpuOhKc3yV4YYCdaPSyUeFm5Lowws/qHLVPyHfq92iC 2fzxNahy78QMZJ8sg8/mCF/kTeXS9poPl91AMfswvX1pVgGhQlIOm3I5mYSmj+1Y sdlJKaeAGw0z6WEGDfdM =X4MW -----END PGP SIGNATURE----- --nextPart1320797.AXMegHN6pN--