Bug#900983: python-minimal: pyversions: /usr/bin/python does not match the python default version. It must be reset to point to python2.7
Package: python-minimal
Version: 2.7.14-4
Severity: critical
Hello,
this happened after the recently introduced python2-* packages:
dpkg-source: info: using options from python-networkx-2.1/debian/source/options: --extend-diff-ignore=^[^/]*[.]egg-info/
fakeroot debian/rules clean
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
py3versions: no X-Python3-Version in control file, using supported versions
dh clean --with sphinxdoc,python2,python3
debian/rules override_dh_auto_clean
make[1]: Entering directory '/build/python-networkx-2.1'
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
py3versions: no X-Python3-Version in control file, using supported versions
dh_auto_clean
dh_auto_clean: Please use the third-party "pybuild" build system instead of python-distutils
dh_auto_clean: This feature will be removed in compat 12.
dh_auto_clean: pyversions -d failed [1]
make[1]: *** [debian/rules:13: override_dh_auto_clean] Error 1
make[1]: Leaving directory '/build/python-networkx-2.1'
make: *** [debian/rules:10: clean] Error 2
root@zion:/build/python-networkx-2.1# pyversions -d
pyversions: /usr/bin/python does not match the python default version. It must be reset to point to python2.7
root@zion:/build/python-networkx-2.1# ls -l /usr/bin/python
lrwxrwxrwx 1 root root 7 Jun 6 21:25 /usr/bin/python -> python2
root@zion:/build/python-networkx-2.1# dpkg -S /usr/bin/python
python-minimal: /usr/bin/python
root@zion:/build/python-networkx-2.1# dpkg -l python-minimal | grep ^ii
ii python-minimal 2.7.15-2 amd64 minimal subset of the Python2 language
root@zion:/build/python-networkx-2.1# dpkg -S `which pyversions`
python2-minimal: /usr/bin/pyversions
root@zion:/build/python-networkx-2.1#
this prevents python modules packages to be built, and it's a regression.
-- 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.14.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages python-minimal depends on:
ii dpkg 1.19.0.4
ii python2.7-minimal 2.7.14-4
Versions of packages python-minimal recommends:
ii python 2.7.14-4
python-minimal suggests no packages.
-- no debconf information
Reply to: