public inbox for gentoo-python@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-python] [PATCH] Error out if something installs the 'tests' package.
@ 2013-02-03 10:19 Michał Górny
  2013-02-04  6:59 ` IAN DELANEY
  0 siblings, 1 reply; 3+ messages in thread
From: Michał Górny @ 2013-02-03 10:19 UTC (permalink / raw
  To: gentoo-python; +Cc: python, Michał Górny

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}"
-- 
1.8.1.2



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-02-04 15:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2013-02-04 15:51   ` Mike Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox