Thomas Goirand <z...@debian.org> writes:

> diff -Nru pytest-2.8.5/debian/rules pytest-2.8.5/debian/rules
> --- pytest-2.8.5/debian/rules 2015-12-18 00:41:22.000000000 +0000
> +++ pytest-2.8.5/debian/rules 2015-12-22 14:58:43.000000000 +0000
> @@ -33,8 +33,12 @@
>          debian/python3-pytest/usr/bin/py.test-3
>       -sed -i '1s|.*|#!/usr/bin/python3.4|' \
>               debian/python3-pytest/usr/bin/py.test-3.4
> +     -sed -i "s/'console_scripts', 'py.test-3.4'/'console_scripts', 
> 'py.test'/" \
> +             debian/python3-pytest/usr/bin/py.test-3.4

This isn't required (although it doesn't hurt either), because the
package defines a py.test-3.4 entry point, however it doesn't defined a
py.test-3.5 entry point.

# cat /usr/lib/python3/dist-packages/pytest-2.8.5.egg-info/entry_points.txt 
[console_scripts]
py.test = pytest:main
py.test-3.4 = pytest:main


>       -sed -i '1s|.*|#!/usr/bin/python3.5|' \
>               debian/python3-pytest/usr/bin/py.test-3.5
> +     -sed -i "s/'console_scripts', 'py.test-3.5'/'console_scripts', 
> 'py.test'/" \
> +             debian/python3-pytest/usr/bin/py.test-3.5
>       rm -rf debian/python3-pytest/usr/lib/python3.5

I am not sure why this debian/python3-pytest/usr/bin/py.test-3.5 file
gets created. Suspect all of the above can disappear when Python 3.5
becomes the default Python in Debian - which unfortunately may not be
any time soon. So I think this change will be required for now.

I also note that python3-pytest comes with a py.test-3.1 man page,
however probably hasn't distributed the corresponding binary in years.
-- 
Brian May <b...@debian.org>

_______________________________________________
Python-modules-team mailing list
Python-modules-team@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to