From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C43391381F3 for ; Mon, 22 Apr 2013 10:50:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4CD08E0B13; Mon, 22 Apr 2013 10:50:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6B7FCE0B13 for ; Mon, 22 Apr 2013 10:50:35 +0000 (UTC) Received: from pomiocik (s241.wifi.put.poznan.pl [150.254.132.242]) (using SSLv3 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 5890233BEEC; Mon, 22 Apr 2013 10:50:33 +0000 (UTC) Date: Mon, 22 Apr 2013 12:51:50 +0200 From: =?UTF-8?B?TWljaGHFgiBHw7Nybnk=?= To: gentoo-python@lists.gentoo.org Cc: python@gentoo.org Subject: [gentoo-python] python-any-r1: bunch of bugfixes/improvements and dep-checking function Message-ID: <20130422125150.5a2396e6@pomiocik> Organization: Gentoo X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.17; x86_64-pc-linux-gnu) 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 Content-Type: multipart/signed; micalg=PGP-SHA512; boundary="Sig_/5shzUM5rVJSCeBKi+8AwWev"; protocol="application/pgp-signature" X-Archives-Salt: 3ea957dd-917b-4bae-92a2-b9b02740a642 X-Archives-Hash: 5c64829ff26fa152ef3a396e03023947 --Sig_/5shzUM5rVJSCeBKi+8AwWev Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I'm submitting a batch of patches for python-any-r1. The patches: 1. improve consistency between Python impl checking code. All branches start to check whether Python interpreter is installed. 2. improve consistency in wrapper setup. All branches now set up wrappers. 3. error out if no Python impl matches. This will become important with the new dep-check function. 4. add support for defining python_check_deps() function in ebuilds. The function can be used to verify whether Python impl chosen by eclass supports all the deps needed for the package. For example, if a package runs a script needing dev-python/foo and dev-python/bar, the function would look like: python_check_deps() { if ! has_version "dev-python/foo[${PYTHON_USEDEP}]"; then einfo "${EPYTHON}: dev-python/foo does not support the impl" return 1 elif ! has_version "dev-python/bar[${PYTHON_USEDEP}]"; then einfo "${EPYTHON}: dev-python/bar does not support the impl" return 1 else return 0 fi } Note that the package will need a proper dep as well: DEPEND=3D" ${PYTHON_DEPS} python_targets_python2_7? ( dev-python/foo[python_targets_python2_7] dev-python/bar[python_targets_python2_7] ) " Note to self: think how to improve the deps. Please note that the new syntax will be necessary only with more complex cases. Simpler things like package just calling 'pyfoo' script will be handled by simple: DEPEND=3D"dev-python/pyfoo" which will enforce at least one impl for pyfoo, and pyfoo wrapper will handle the rest. --=20 Best regards, Micha=C5=82 G=C3=B3rny --Sig_/5shzUM5rVJSCeBKi+8AwWev Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQJ8BAEBCgBmBQJRdRZIXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ1RUJGMjBGOTk2RkIzQzIyQ0M2RkNBNDBC QUJGMUQ1RkY4QzgxMTBBAAoJELq/HV/4yBEKYB8QANOVudw1zgIYTfFEskIFAJyu jFdis6EYxfDcuxvJPjuIPl0RLAHU3y8MilyK8Lt5qBweEMfwX1CKEYoOpMDEufLe 7VXVLjqTxzQRSqfypuumDUXSc7q+FBVbd9xM2ltdtr13Iq3fqNyZKDij4zQI+CnD m/SRzHuJJ+kpIOQ9DL2TinZzFuKqBmqrEIQlqG5KhevDt6bmZyvBD9mFJpjX4Ij2 Dz1EL2OCcZjS7/ffNNrl+XobKlgPZCSIkjF5lM0gcv2xEWR7ZDSOXvQ910Uo0OW4 KPsu14dpbdR5hnq5PQ6qTErdLCtadXYc9c1iODcg/SP9Ap/Xk/PF7zKJyoNnSfO5 8WQlVW4b1VjL5qnLfpSSzCDIe/Vl5rqdyPJosMUQw8A+GiOZy+0bOTOSZYvT8xP+ oSR6/vFoMkU0fnOrKC97baII46CrhHgzKMfCogZsNIAW8jCgD/FETFusifgbeo3I 5RZb+gj2whWKOVYXcxMC7PAWPWt25qHmM1jNNkvlyZr87EGEg5FZDnDow/vJUfDF SIHUGBx4Hr8/aCqksWUSn1x4fYkY11BCJTh2Honuo4p5FcgIVdvVQPGP1PvY9mwC 4nCsa5wmRRKEyDEfxuXZnGrtfT0gWxNZ/m0YGTBdMLsiGB3/iuTJ5gPu5QNpoFRr 9ldgPe5tPOKptN5VZBl7 =hGcu -----END PGP SIGNATURE----- --Sig_/5shzUM5rVJSCeBKi+8AwWev--