Package: debhelper
Version: 7.2.16
Severity: wishlist
Tags: patch

Python2.6, currently uploaded in experimental, installs Python modules
under /usr/local to ease local administrators' job. Debian packages are
supposed to install modules under /usr by mean of --install-layout=deb
option. See [1] for additional details.

Python 2.6 transition has not started yet, but will happen soon when
python2.6 will be moved to unstable, implementing this avoids tons of
packages to install modules in wrong locations.

--install-layout=deb has been implemented (as no-op) for python2.5 [2]
and python2.4 [3] and is currently available in unstable and testing,
so it should be safe implementing this change right now.

Attached patch against current git snapshot implements this.

[1] http://lists.debian.org/debian-devel/2009/02/msg00431.html
[2] http://packages.qa.debian.org/p/python2.5/news/20081221T093209Z.html
[3] http://packages.qa.debian.org/p/python2.4/news/20081221T091912Z.html

Regards,

-- 
 . ''`.      Luca Falavigna
 : :'  :  Ubuntu MOTU Developer
 `. `'`     Debian Maintainer
   `-      GPG Key: 0x86BC2A50
diff --git a/dh_auto_install b/dh_auto_install
index 264725c..61ed904 100755
--- a/dh_auto_install
+++ b/dh_auto_install
@@ -87,6 +87,7 @@ elsif (-e "setup.py") {
 	doit("python", "setup.py", "install", 
 		"--root=$destdir",
 		"--no-compile", "-O0",
+		"--install-layout=deb",
 		@{$dh{U_PARAMS}});
 }
 elsif (-e "Build.PL" && -e "Build") {

Attachment: signature.asc
Description: PGP signature

Reply via email to