On Tue, 7 Jan 2020 18:34:06 +0100 Gianfranco Costamagna <locutusofb...@debian.org> wrote: > Source: numpy > Version: 1:1.17.4-5 > Severity: serious > tags: patch > > Hello, looks like there still is a python2 call in rules file, making the > package FTBFS where python2 is not installed anymore > > possible patch: > > diff -Nru numpy-1.17.4/debian/changelog numpy-1.17.4/debian/changelog > --- numpy-1.17.4/debian/changelog 2019-12-22 07:50:13.000000000 +0100 > +++ numpy-1.17.4/debian/changelog 2020-01-07 18:29:58.000000000 +0100 > @@ -1,3 +1,9 @@ > +numpy (1:1.17.4-6) unstable; urgency=medium > + > + * Move versions3.helper to python3 (Closes: #-1) > + > + -- Gianfranco Costamagna <locutusofb...@debian.org> Tue, 07 Jan 2020 > 18:29:58 +0100 > + > numpy (1:1.17.4-5) unstable; urgency=medium > > * debian/rules > diff -Nru numpy-1.17.4/debian/rules numpy-1.17.4/debian/rules > --- numpy-1.17.4/debian/rules 2019-12-22 07:50:13.000000000 +0100 > +++ numpy-1.17.4/debian/rules 2020-01-07 18:29:55.000000000 +0100 > @@ -93,7 +93,7 @@ > dh_link -ppython3-numpy-dbg usr/share/doc/python3-numpy > usr/share/doc/python3-numpy-dbg > > override_dh_gencontrol: > - python debian/versions3.helper >> debian/python3-numpy.substvars > + python3 debian/versions3.helper >> debian/python3-numpy.substvars > dh_gencontrol > > override_dh_compress: > diff -Nru numpy-1.17.4/debian/versions3.helper > numpy-1.17.4/debian/versions3.helper > --- numpy-1.17.4/debian/versions3.helper 2019-12-22 07:50:13.000000000 > +0100 > +++ numpy-1.17.4/debian/versions3.helper 2020-01-07 18:29:46.000000000 > +0100 > @@ -1,4 +1,4 @@ > -#!/usr/bin/python > +#!/usr/bin/python3 > > ''' > Check if debian/versions is sane and generate substvars for numpy:Provides. > > > Let me know if it is ok for you or not! > (I don't plan to upload, I'm not sure about the patch, because > versions3.helper might be not fully Python3 ready) > > thanks > > Gianfranco > > >
I forgot to update the old python2 "print" statement --- numpy-1.17.4/debian/versions3.helper 2019-12-22 07:50:13.000000000 +0100 +++ numpy-1.17.4/debian/versions3.helper 2020-01-07 18:29:58.000000000 +0100 @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 ''' Check if debian/versions is sane and generate substvars for numpy:Provides. @@ -26,7 +26,7 @@ file.close() assert data['abi'] == str(data['C_ABI_VERSION'] - 0x1000000), 'Is debian/versions up-to-date?' assert data['api'] == str(data['C_API_VERSION']), 'Is debian/versions up-to-date?' - print 'numpy3:Provides=python3-numpy-abi%s, python3-numpy-api%s' % (data['abi'], data['api']) + print('numpy3:Provides=python3-numpy-abi%s, python3-numpy-api%s' % (data['abi'], data['api'])) if __name__ == '__main__': main()