Andrew Straw wrote:
> The commonly used package python-setuptools allows developers to specify
> console scripts using the entry_points keyword argument to setup() in
> setup.py. For example, an executable script named 'simplepack_pyversion'
> would be created using this keyword argument:
>
> entry_points = {'console_scripts':
> ['my_script = my_package:main']}
>
> Unfortunately, when run with debhelper, these scripts get created with
> the wrong shebang line. I am attaching a patch and a test case.
>
> The shebang line gets assigned by setuptools as the value of
> sys.executable, which is seems OK. The trouble is that debhelper
> supports multiple versions of Python by cycling through those found with
> "pyversions -r" starting with the default. Using this ordering scheme,
> any files installed by the default Python (and thus having shebang
> /usr/bin/python) get overwritten by files installed with non-default
> Pythons. The attached patch replaces the order of Pythons invoked, and
> thus the default Python always comes last.Unfortunatly, this is known to break other packages. See #547510. -- see shy jo
signature.asc
Description: Digital signature

