1 |
2011-05-01 00:32:13 Brian Harring napisał(a): |
2 |
> On Sat, Apr 30, 2011 at 11:27:47PM +0200, Arfrever Frehtes Taifersar Arahesis wrote: |
3 |
> > 2011-04-04 13:48:43 Brian Harring napisał(a): |
4 |
> > > > # @ECLASS: python-namespaces.eclass |
5 |
> > > > # @MAINTAINER: |
6 |
> > > > # Gentoo Python Project <python@g.o> |
7 |
> > > > # @BLURB: Eclass for packages installing Python namespaces |
8 |
> > > > # @DESCRIPTION: |
9 |
> > > > # The python-namespaces eclass defines phase functions for packages installing Python namespaces. |
10 |
> > > |
11 |
> > > ^^^ This isn't a useful description. |
12 |
> > |
13 |
> > IMHO it's sufficient, but could you suggest some sentences of description? |
14 |
> |
15 |
> It probably is sufficient for *you*- you're knee deep in the guts of |
16 |
> python, and know it's purpose. Plus you wrote the eclass ;) |
17 |
> |
18 |
> The purpose of the description, and general code comments is for |
19 |
> *other* folk who may be looking at that code/problem for the first |
20 |
> time. It needs to be written aimed at them. |
21 |
> |
22 |
> I'd suggest doing a grep of DESCRIPTION w/in eclasses and working from |
23 |
> the clearer examples- just looking at the first few examples returned, |
24 |
> alternatives for example has enough in the opening description to |
25 |
> understand exactly what it's for, same for apache-2. |
26 |
> |
27 |
> One thing to keep in mind is that even for folk who know python, this |
28 |
> is actually an area that doesn't match the normal verbage, and is a |
29 |
> bit niche in it's usage- try googling 'python namespaces' sometime, |
30 |
> note that it's scope discussions rather than pkgutil/distribute |
31 |
> importation across multiple directories. |
32 |
> |
33 |
> To be clear, 'python namespaces' is a whole other thing from what this |
34 |
> is doing- this is manipulation of importation pathways (the |
35 |
> module/import hierarchy/namespace, rather than the common scope |
36 |
> terminology). |
37 |
> |
38 |
> Either way, rough suggestion: |
39 |
> """ |
40 |
> This eclass handles installation/creation of python 2.7 and higher |
41 |
|
42 |
__init__.py files generated by this eclass work with Python 2.4. |
43 |
(I haven't tested them with older versions.) |
44 |
|
45 |
> pkgutil namespaces, and the equivalent distibute functionality. See |
46 |
> zope's (example ebuild) for examples of usage. |
47 |
> """ |
48 |
|
49 |
-- |
50 |
Arfrever Frehtes Taifersar Arahesis |