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 1Q6WVf-000240-6v for garchives@archives.gentoo.org; Sun, 03 Apr 2011 23:15:07 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 33C5EE05B1; Sun, 3 Apr 2011 23:14:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 1A5D1E0539 for ; Sun, 3 Apr 2011 23:14:20 +0000 (UTC) Received: from afta-gentoo.localnet (ip-85-198-244-135.broker.com.pl [85.198.244.135]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: arfrever) by smtp.gentoo.org (Postfix) with ESMTPSA id 6D4201B404F; Sun, 3 Apr 2011 23:14:19 +0000 (UTC) From: Arfrever Frehtes Taifersar Arahesis To: Gentoo Development Subject: [gentoo-dev] Re: python-namespaces.eclass Date: Mon, 4 Apr 2011 01:13:37 +0200 User-Agent: KMail/1.13.6 (Linux/2.6.34-tuxonice-r8-AFTA; KDE/4.4.5; x86_64; ; ) Cc: qa@gentoo.org References: <201104031938.18311.Arfrever@gentoo.org> <4D98CA42.6010204@gentoo.org> In-Reply-To: <4D98CA42.6010204@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: multipart/signed; boundary="nextPart7196000.EiTFQyZ1Gn"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201104040113.37972.Arfrever@gentoo.org> X-Archives-Salt: X-Archives-Hash: d58d15f12834b807d1f0e39e558c0755 --nextPart7196000.EiTFQyZ1Gn Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 2011-04-03 21:28:02 Tom=C3=A1=C5=A1 Chv=C3=A1tal napisa=C5=82(a): > Dne 3.4.2011 19:38, Arfrever Frehtes Taifersar Arahesis napsal(a): > > I would like to add python-namespaces.eclass. This eclass will be used = by a small number of > > special packages, which will provide Python namespaces. These packages = will be used as > > dependencies of other packages already present in the tree. > > > > Ebuilds using this eclass must set PYTHON_NAMESPACES variable before in= heriting this eclass. > > Example (from net-zope/namespaces-zope): > > PYTHON_NAMESPACES=3D"Products Shared Shared.DC five +zope zope.app" > > > > This eclass provides 3 public functions: > > python-namespaces_src_install() > > python-namespaces_pkg_postinst() > > python-namespaces_pkg_postrm() > > > Why you do so much overquoting in the conditions? I like consistency with python.eclass and improved syntax highlighting :) . > Why do you die on those arguments, just ignore them... The policy for Python-related eclasses is to not ignore misusage of functio= ns. > You could use some eclass-debug calls (see other eclasses) :) IMHO they are helpless in debugging. 'set -x' enabled by -d option of emerg= e is more helpful. > Why do you call those set_metadata right after its creation and delete > it right away, does it save so much time it is better than doing it in > global scope? It is used to have appropriate scope for local variables, so that they don'= t have to be unset manually immediately after the code, in which they should exist. =2D-=20 Arfrever Frehtes Taifersar Arahesis --nextPart7196000.EiTFQyZ1Gn Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJNmP8hAAoJENgZr6v6gHY0H8oQAKN2hmeTtzN9T/QORCOzNP3R D+RLWVPT3fq1w8XGlT9i1Hd1C4Ybk52H5rXMW9jW/GBFhbdj/cuOp9fFWq8nG5gT tL9jsrDjs3hKwcMjhDqNjFW31601aUTC8AsYeeUbWMQKWxDOz662Oda5TYfrnk/2 9bABz3yJ7gxUPorS2CkjK36T2UCuqbJRZDb9Oa2rxHMk4PW3AtTjwq4PCgLpPl8X cDnhcFg+nlIP2bmJQDAmCh32OO9WTIhfRRa738Q6SGkU6XNh4SJWlFQ2/X5UXPFc TBqHE6dm4agNnwkh05jg05TWNrUKbiJhbyaUiKzxwnjG8NFqTUIYTxIxNCIRVWef Zn4LV1ymnQs4c43NHrqFHY+9VMOmCJCEtHm+Qpgg9xyDYTSoMa/eJRD288BuRY24 RUqINTMFPxf0WIlVkKJ6Kz9MvnPqPYtBQa0LElOWxJdoUjB7019jGg8RDJ2syh60 XK3cnsGKm3MsfYpoS3R/bV4PKhsQKrvoCDYbZuaq97uuCMQlwNohrPMhiyMLUjTv 4MSQ2lT22pOrN3dFjF0C642f6dUOoN4kPVmbhGwU+ILnYw4JrR8PgDefm+YuzS3G 5QMEkqaWNhSEOfL+O6aqWbHaez52tH+qStoeBKcj7SzUJyMcGLhF7Mt9YmQRoPjn 3pWhUVqUs/z94yW6J/AX =y3Sr -----END PGP SIGNATURE----- --nextPart7196000.EiTFQyZ1Gn--