[Build-common-hackers] Bug#628110: cdbs: Wrong install dir for python modules

Olivier Aubert olivier.aubert at liris.cnrs.fr
Fri May 27 10:49:51 UTC 2011


Package: cdbs
Version: 0.4.93
Severity: minor

When transitioning a package from python-support to dh_python2, dh_python2 generates the following warning:
W: dh_python2:96: Python 2.6 should install files in /usr/lib/python2.6/dist-packages/. Did you forget "--install-layout=deb"?

Indeed, modules are installed into /usr/lib/python2.6/site-packages

Adding the following line to debian/rules:
DEB_PYTHON_INSTALL_ARGS_ALL = --install-layout=deb
did not help. Moreover, it should be standard when using dh_python2.

It comes from the python-distutils.mk file that explicitly specifies

cdbs_expand_python_distutils_installdir = $(subst @PYTHONBINARY@,$1,$(or $(DEB_PYTHON_DISTUTILS_INSTALLDIR_SKEL),/usr/lib/@PYTHONBINARY@/site-packages/))

Changing it to specify dist-packages instead removes the warning. However, I am not sure about its validity wrt. other methods (pysupport and pycentral).

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.39-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages cdbs depends on:
ii  debhelper                     8.1.6      helper programs for debian/rules

Versions of packages cdbs recommends:
ii  autotools-dev                 20110511.1 Update infrastructure for config.{

Versions of packages cdbs suggests:
ii  devscripts                    2.10.73    scripts to make the life of a Debi

-- no debconf information





More information about the Build-common-hackers mailing list