From: IAN DELANEY <della5@iinet.com.au>
To: gentoo-python@lists.gentoo.org
Subject: Re: [gentoo-python] [PATCH] Error out if something installs the 'tests' package.
Date: Mon, 4 Feb 2013 14:59:07 +0800 [thread overview]
Message-ID: <20130204145907.74b6366f@archtester.homenetwork> (raw)
In-Reply-To: <1359886764-13676-1-git-send-email-mgorny@gentoo.org>
On Sun, 3 Feb 2013 11:19:24 +0100
Michał Górny <mgorny@gentoo.org> wrote:
> This is a common error, especially in my ebuilds or those based on
> mine. It gives a bunch of collisions, so dying here seems to be
> acceptable while eqawarn is easy to miss.
> ---
> gx86/eclass/distutils-r1.eclass | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/gx86/eclass/distutils-r1.eclass
> b/gx86/eclass/distutils-r1.eclass index 27730f5..13d65b5 100644
> --- a/gx86/eclass/distutils-r1.eclass
> +++ b/gx86/eclass/distutils-r1.eclass
> @@ -367,6 +367,10 @@ distutils-r1_python_install() {
>
> esetup.py install "${flags[@]}" --root="${root}" "${@}"
>
> + if [[ -d ${root}$(python_get_sitedir)/tests ]]; then
> + die "Package installs 'tests' package, file
> collisions likely."
> + fi
> +
> if [[ ! ${DISTUTILS_SINGLE_IMPL} ]]; then
> _distutils-r1_rename_scripts "${root}"
> _distutils-r1_merge_root "${root}" "${D}"
Actually I don't like it. I did a 'fix' like this to a package in a
more rare instance concerning building of docs, but the Rx was to
abort and call die and tell the user to start again. The chief critic
of this concluded I didn't know what I was doing, but then he's known
for his prolific and indiscriminant use of hyperbole. The 'better'
solution was to indeed to correct the underlying flaw and and get on
with emerging the package. The practice of 'abort and start again' is,
I admit, unsavoury at best.
Given that this is a relatively common error, let's get a 'clear
picture' of the status of the presence of the relatively common
instance test folders and suites in python packages. There are some
that install them and some that don't, so we're forced to chase a
'moving target'. Can we decide categorically that test suites need and
ought not be installed in python packages, or do we have to water it
down with "Oh it depends on these dozens of possibilities and those
ones over there"? This creates a myriad of scenarios of uncertainty.
Step 1. Make the target still
Step 2. Once the target is still, then deal with it accordingly;
install them in a collision free fashion, or delete them once and for
all if we can declare then un-needed. The latter has quite a bit going
for it.
Step 3. Make potential critics like the anonymous dev previously and
obliquely cited forever silent, and get on with emerging the package.
--
kind regards
Ian Delaney
next prev parent reply other threads:[~2013-02-04 6:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-03 10:19 [gentoo-python] [PATCH] Error out if something installs the 'tests' package Michał Górny
2013-02-04 6:59 ` IAN DELANEY [this message]
2013-02-04 15:51 ` Mike Gilbert
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=20130204145907.74b6366f@archtester.homenetwork \
--to=della5@iinet.com.au \
--cc=gentoo-python@lists.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