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 1Q6T3r-0007AW-JJ for garchives@archives.gentoo.org; Sun, 03 Apr 2011 19:34:11 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A39C61C052; Sun, 3 Apr 2011 19:34:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id A148C1C028 for ; Sun, 3 Apr 2011 19:33:28 +0000 (UTC) Received: from [192.168.1.3] (ip-94-112-147-25.net.upcbroadband.cz [94.112.147.25]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: scarabeus) by smtp.gentoo.org (Postfix) with ESMTPSA id 665111B404A; Sun, 3 Apr 2011 19:33:27 +0000 (UTC) Message-ID: <4D98CA42.6010204@gentoo.org> Date: Sun, 03 Apr 2011 21:28:02 +0200 From: =?UTF-8?B?VG9tw6HFoSBDaHbDoXRhbA==?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110323 Lightning/1.0b3pre Thunderbird/3.1.9 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 To: Arfrever Frehtes Taifersar Arahesis CC: Gentoo Development , qa@gentoo.org Subject: [gentoo-dev] Re: python-namespaces.eclass References: <201104031938.18311.Arfrever@gentoo.org> In-Reply-To: <201104031938.18311.Arfrever@gentoo.org> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: cb94f30c321c5c9ac769c426ca2c01f2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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 inheriting this eclass. > Example (from net-zope/namespaces-zope): > PYTHON_NAMESPACES="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? Why do you die on those arguments, just ignore them... You could use some eclass-debug calls (see other eclasses) :) 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? Since it is new eclass why are not python namespaces bash array? You could then stop counting them and so on :) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk2YykIACgkQHB6c3gNBRYfcLACgnvv+0UVw/YeJyUxwblM72AWJ Tl4AmgNqdcU7sto0xSqrXFEdCxufd4ik =zy/K -----END PGP SIGNATURE-----