Command to query “Python versions that are installed *with* standard library”
Howdy all, What is a ‘py3versions’ (or alternative) command that can be run in AutoPkgTest, to query the Python versions that are installed on this machine *with* their standard library? The ‘pythonX.Y-minimal’ packages can be installed *without* standard library, but will still appear in the ‘py3versions --installed’ output. This means it's possible to have an AutoPkgTest test that attempts to run a module for all the ‘py3versions --installed’ versions, then fail because an import of a standard library module fails. What command, hopefully as simple as ‘py3versions --installed’, can be used in AutoPkgTest to interrogate *only* those Python versions on the local machine that have their standard library installed? -- \ “Friendship is born at that moment when one person says to | `\another, ‘What! You too? I thought I was the only one!’” —C.S. | _o__)Lewis | Ben Finney
Re: Command to query “Python versions that are installed *with* standard library”
On 24.01.19 00:16, Ben Finney wrote: > Howdy all, > > What is a ‘py3versions’ (or alternative) command that can be run in > AutoPkgTest, to query the Python versions that are installed on this > machine *with* their standard library? > > The ‘pythonX.Y-minimal’ packages can be installed *without* standard > library, but will still appear in the ‘py3versions --installed’ output. > > This means it's possible to have an AutoPkgTest test that attempts to > run a module for all the ‘py3versions --installed’ versions, then fail > because an import of a standard library module fails. > > What command, hopefully as simple as ‘py3versions --installed’, can be > used in AutoPkgTest to interrogate *only* those Python versions on the > local machine that have their standard library installed? we currently can't do that, until python3.6 gets removed. I assume it's still on some images?
Re: Command to query “Python versions that are installed *with* standard library”
Hi Ben, On Thu, Jan 24, 2019 at 10:16:44AM +1100, Ben Finney wrote: > Howdy all, > > What is a ‘py3versions’ (or alternative) command that can be run in > AutoPkgTest, to query the Python versions that are installed on this > machine *with* their standard library? > > The ‘pythonX.Y-minimal’ packages can be installed *without* standard > library, but will still appear in the ‘py3versions --installed’ output. > > This means it's possible to have an AutoPkgTest test that attempts to > run a module for all the ‘py3versions --installed’ versions, then fail > because an import of a standard library module fails. > > What command, hopefully as simple as ‘py3versions --installed’, can be > used in AutoPkgTest to interrogate *only* those Python versions on the > local machine that have their standard library installed? I usually use py3versions --supported and make the autopkgtest depend on python3-all. -- Dmitry Shachnev signature.asc Description: PGP signature
Re: Command to query “Python versions that are installed *with* standard library”
Matthias Klose writes: > On 24.01.19 00:16, Ben Finney wrote: > > What command, hopefully as simple as ‘py3versions --installed’, can > > be used in AutoPkgTest to interrogate *only* those Python versions > > on the local machine that have their standard library installed? > > we currently can't do that, until python3.6 gets removed. Can you explain that connection? What is it about Python <= 3.6 that prevents interrogating the installed versions in the way I've described? -- \ “He was the mildest-mannered man / That ever scuttled ship or | `\ cut a throat.” —“Lord” George Gordon Noel Byron, _Don Juan_ | _o__) | Ben Finney
Re: Command to query “Python versions that are installed *with* standard library”
Dmitry Shachnev writes: > I usually use py3versions --supported and make the autopkgtest depend > on python3-all. Thank you, I had forgotten that AutoPkgTest dependencies are declared separately from the build dependencies. That works fine. -- \ “The long-term solution to mountains of waste is not more | `\ landfill sites but fewer shopping centres.” —Clive Hamilton, | _o__)_Affluenza_, 2005 | Ben Finney