Package: python-netaddr
Version: 0.6-1

Hi,

The python-netaddr rules file contains the following:

binary-post-install/python-netaddr:: binary-post-install/%:
        # We want to run tests against installed files
        cp -a 'tests' \
                'debian/$(cdbs_curpkg)/usr/share/python-support/python-netaddr'
        cd / ; python 
'$(CURDIR)/debian/$(cdbs_curpkg)/usr/share/python-support/python-netaddr/tests/ut_netaddr.py'
        rm -rf 
'debian/$(cdbs_curpkg)/usr/share/python-support/python-netaddr/tests'
        find 'debian/$(cdbs_curpkg)' -regex '.*/*\.py[co]' -print0 \
        | xargs -0 rm -f --

With the upcoming version of python-support (currently in experimental),
such statements will make the package FTBFS, since the files are now
moved to a different directory (/usr/share/pyshared).

You should run the unit tests before the call to dh_pysupport so that
they are not dependent on the installation directory. This will also
avoid having to cleanup the .pyc files, since dh_pysupport will do this
automatically.

As a general rule, please do not rely on the internals of python-support
in the packaging; this will avoid such issues in the future (although
hopefully there won’t be a need to change the paths any further).

Thanks,
-- 
 .''`.      Debian 5.0 "Lenny" has been released!
: :' :
`. `'   Last night, Darth Vader came down from planet Vulcan and told
  `-    me that if you don't install Lenny, he'd melt your brain.

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée

Reply via email to