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