Gentoo Archives: gentoo-python

From: "Michał Górny" <mgorny@g.o>
To: gentoo-python@l.g.o
Cc: python@g.o, "Michał Górny" <mgorny@g.o>
Subject: [gentoo-python] [PATCH] Error out if something installs the 'tests' package.
Date: Sun, 03 Feb 2013 10:19:35
Message-Id: 1359886764-13676-1-git-send-email-mgorny@gentoo.org
1 This is a common error, especially in my ebuilds or those based on mine.
2 It gives a bunch of collisions, so dying here seems to be acceptable
3 while eqawarn is easy to miss.
4 ---
5 gx86/eclass/distutils-r1.eclass | 4 ++++
6 1 file changed, 4 insertions(+)
7
8 diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.eclass
9 index 27730f5..13d65b5 100644
10 --- a/gx86/eclass/distutils-r1.eclass
11 +++ b/gx86/eclass/distutils-r1.eclass
12 @@ -367,6 +367,10 @@ distutils-r1_python_install() {
13
14 esetup.py install "${flags[@]}" --root="${root}" "${@}"
15
16 + if [[ -d ${root}$(python_get_sitedir)/tests ]]; then
17 + die "Package installs 'tests' package, file collisions likely."
18 + fi
19 +
20 if [[ ! ${DISTUTILS_SINGLE_IMPL} ]]; then
21 _distutils-r1_rename_scripts "${root}"
22 _distutils-r1_merge_root "${root}" "${D}"
23 --
24 1.8.1.2

Replies

Subject Author
Re: [gentoo-python] [PATCH] Error out if something installs the 'tests' package. IAN DELANEY <della5@×××××××××.au>