From: Brian Harring <ferringb@gmail.com>
To: gentoo-dev@lists.gentoo.org
Cc: qa@gentoo.org
Subject: Re: [gentoo-dev] python-namespaces.eclass
Date: Mon, 4 Apr 2011 04:48:43 -0700 [thread overview]
Message-ID: <20110404114843.GA13291@hrair> (raw)
In-Reply-To: <201104031938.18311.Arfrever@gentoo.org>
[-- Attachment #1: Type: text/plain, Size: 2458 bytes --]
On Sun, Apr 03, 2011 at 07:38:17PM +0200, Arfrever Frehtes Taifersar Arahesis wrote:
> 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):
namespaces-zope's invocation of the mod_optimize/cleanup crap isn't
needed since it's EAPI>=3; EAPI3 preserves mtime.
What other consumers are expected for this beyond 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()
>
> --
> Arfrever Frehtes Taifersar Arahesis
>
> # Copyright 1999-2011 Gentoo Foundation
> # Distributed under the terms of the GNU General Public License v2
> # $Header: $
>
> # @ECLASS: python-namespaces.eclass
> # @MAINTAINER:
> # Gentoo Python Project <python@gentoo.org>
> # @BLURB: Eclass for packages installing Python namespaces
> # @DESCRIPTION:
> # The python-namespaces eclass defines phase functions for packages installing Python namespaces.
^^^ This isn't a useful description. What is it doing to the phase
functions? What's the purpose for someone who isn't intimately
familiar w/ python setuptools/namespaces? Etc.
Seriously, I just spent a good 10 minutes digging through this crap
trying to figure out what you were up to- that is *exactly* what the
description should convey.
Same goes for the code; this needs to be peppered with
clear/descriptive comments. The description for PYTHON_NAMESPACES for
example on it's own doesn't make clear that it screws with
REQUIRED_USE (let alone exactly it's intent).
General commentary: If you want to do magic like this, it needs to be
documented clearly so everyone else can figure out wtf it is exactly
intending on doing (including what it actually is doing)- if it can't
be documented to that level it doesn't belong in the tree, only in
your personal overlay.
As mentioned by others, if you're going to use [[ ]] stop doing
unnecessarily quoting w/ that construct- fix your editor if it
doesn't color it correctly.
~harring
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2011-04-04 11:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-03 17:38 [gentoo-dev] python-namespaces.eclass Arfrever Frehtes Taifersar Arahesis
2011-04-03 19:28 ` [gentoo-dev] python-namespaces.eclass Tomáš Chvátal
2011-04-03 23:13 ` Arfrever Frehtes Taifersar Arahesis
2011-04-04 10:04 ` Tomáš Chvátal
2011-04-04 16:02 ` Alec Warner
2011-04-04 17:43 ` [gentoo-dev] python-namespaces.eclass Arfrever Frehtes Taifersar Arahesis
2011-04-05 4:33 ` [gentoo-dev] python-namespaces.eclass Jeroen Roovers
2011-04-04 8:20 ` [gentoo-dev] python-namespaces.eclass Fabian Groffen
2011-04-04 11:48 ` Brian Harring [this message]
2011-04-04 18:01 ` Arfrever Frehtes Taifersar Arahesis
2011-04-30 21:27 ` Arfrever Frehtes Taifersar Arahesis
2011-04-30 22:32 ` Brian Harring
2011-04-30 22:49 ` Arfrever Frehtes Taifersar Arahesis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110404114843.GA13291@hrair \
--to=ferringb@gmail.com \
--cc=gentoo-dev@lists.gentoo.org \
--cc=qa@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox