Gentoo Archives: gentoo-dev

From: "Tomáš Chvátal" <scarabeus@g.o>
To: Arfrever Frehtes Taifersar Arahesis <Arfrever@g.o>
Cc: Gentoo Development <gentoo-dev@l.g.o>, qa@g.o
Subject: [gentoo-dev] Re: python-namespaces.eclass
Date: Sun, 03 Apr 2011 19:34:11
Message-Id: 4D98CA42.6010204@gentoo.org
In Reply to: [gentoo-dev] python-namespaces.eclass by Arfrever Frehtes Taifersar Arahesis
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Dne 3.4.2011 19:38, Arfrever Frehtes Taifersar Arahesis napsal(a):
5 > I would like to add python-namespaces.eclass. This eclass will be used by a small number of
6 > special packages, which will provide Python namespaces. These packages will be used as
7 > dependencies of other packages already present in the tree.
8 >
9 > Ebuilds using this eclass must set PYTHON_NAMESPACES variable before inheriting this eclass.
10 > Example (from net-zope/namespaces-zope):
11 > PYTHON_NAMESPACES="Products Shared Shared.DC five +zope zope.app"
12 >
13 > This eclass provides 3 public functions:
14 > python-namespaces_src_install()
15 > python-namespaces_pkg_postinst()
16 > python-namespaces_pkg_postrm()
17 >
18 Why you do so much overquoting in the conditions?
19
20 Why do you die on those arguments, just ignore them...
21
22 You could use some eclass-debug calls (see other eclasses) :)
23
24 Why do you call those set_metadata right after its creation and delete
25 it right away, does it save so much time it is better than doing it in
26 global scope?
27
28 Since it is new eclass why are not python namespaces bash array? You
29 could then stop counting them and so on :)
30 -----BEGIN PGP SIGNATURE-----
31 Version: GnuPG v2.0.17 (GNU/Linux)
32 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
33
34 iEYEARECAAYFAk2YykIACgkQHB6c3gNBRYfcLACgnvv+0UVw/YeJyUxwblM72AWJ
35 Tl4AmgNqdcU7sto0xSqrXFEdCxufd4ik
36 =zy/K
37 -----END PGP SIGNATURE-----

Replies

Subject Author
[gentoo-dev] Re: python-namespaces.eclass Arfrever Frehtes Taifersar Arahesis <Arfrever@g.o>