Package: dh-python
Version: 3.20190308
Severity: normal

I'm trying to update petsc 3.11 to build with python3 rather than
python2 (petsc 3.11 in the petsc experimental branch on salsa now
supports python3 in its configure script).

Some of petsc's python scripts have a generic shebang, 
  #!/usr/bin/env python 
e.g. PetscBinaryIOTrajectory.py and other scripts in
lib/petsc/bin/ These scripts are installed in package
libpetsc3.11-dev-common, in /usr/share/petsc/3.11/lib/petsc/bin/

I've set petsc's debian/rules to dh $@ --with python3
dh_python3 is invoked by the build, and updates the #!/usr/bin/env python 
shebangs.

But dh_python3 updates the shebangs to /usr/bin/python instead of
/usr/bin/python3

I would have expected dh_python3 to update them to /usr/bin/python3,
at least if dh --with python3 is used without python2.

Is this a bug in dh_python3?

(I can override it with dh_python3 --shebang of course, but I'm trying
to use automatic defaults where possible)


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-4-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dh-python depends on:
ii  python3            3.7.3-1
ii  python3-distutils  3.7.3-1

dh-python recommends no packages.

Versions of packages dh-python suggests:
ii  dpkg-dev      1.19.6
ii  libdpkg-perl  1.19.6

-- no debconf information

Reply via email to