Package: python-django
Version: 1.0.2-1

Hi,

The python-django rules file contains the following:

binary-post-install/python-django::
        # Use default python shebang
        perl -pi -e 's|^#!/usr/bin/env python.*$$|#!/usr/bin/python|' 
debian/python-django/usr/share/python-support/python-django/django/conf/project_template/manage.py
        # Ensure executability of some scripts that are copied to projects
        # (or used within projects)
        chmod 755 
debian/python-django/usr/share/python-support/python-django/django/conf/project_template/manage.py
        chmod 755 
debian/python-django/usr/share/python-support/python-django/django/bin/[^_]*.py
        chmod 755 
debian/python-django/usr/share/python-support/python-django/django/bin/profiling/[^_]*.py
        # Remove execute rights from stuff that shouldn't have them
        chmod 644 
debian/python-django/etc/bash_completion.d/django_bash_completion
        # Create convenience symlink
        mkdir -p debian/python-django/usr/lib/python-django
        dh_link usr/share/python-support/python-django/django/bin 
usr/lib/python-django/bin 

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).

I suggest to do these things before the dh_pysupport call, and from the
standard installation directory:

install/python-django::
        perl -pi -e …  debian/python-django/usr/lib/`pyversions 
-d`/site-packages
        …

Furthermore, if the files in bin/ are only meant to be executed
from /usr/lib/python-django/bin and not to be imported, they should be
entirely moved there, where they will be treated like private modules.
The way they are currently packaged, the .pyc files will never be used
and worse, it is likely that some will be generated
in /usr/share/python-support, where they won’t be cleaned.

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.
-- 
 .''`.      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