On Sun, Aug 14, 2022 at 02:13:06PM +0200, Stefano Rivera wrote:
> Hi Mike (2022.07.21_02:33:17_+0200)
> > The code that handles DEB_PYTHON3_SUPPORTED wants multiple versions to
> > be separated with commas:
> >   
> > https://sources.debian.org/src/dh-python/5.20220403/dhpython/_defaults.py/#L61
> 
> And that's what's documented for pybuild.
> 
> > When using dh_python --buildsystem=pybuild, pybuild is called with the
> > -p argument with the value of DEB_PYTHON3_SUPPORTED as is:
> >   https://sources.debian.org/src/dh-python/5.20220403/dh/pybuild.pm/#L214
> >   where py3vers comes from
> >   https://sources.debian.org/src/dh-python/5.20220403/dh/pybuild.pm/#L47
> 
> I think this is the bug, those should be transformed to spaces.
> 
> > pybuild does handle `-p "3.6 3.7"` as meaning both versions, but then
> > dh_python considers it as major version 3, minor version "6 3", and
> > throws an exception.
> 
> Can you expand on that? Why is dh_python even involved?

To get to the point of having pybuild invoked with "3.6 3.7" without
touching its code, you set DEB_PYTHON3_SUPPORTED to "3.6 3.7", which
dh_python interprets the way I mentioned.

Mike

Reply via email to