Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #11273 > unrolled thread
| Started by | Ben Finney <bignose@debian.org> |
|---|---|
| First post | 2019-01-24 00:20 +0100 |
| Last post | 2019-01-25 06:30 +0100 |
| Articles | 5 — 3 participants |
Back to article view | Back to linux.debian.maint.python
Command to query “Python versions that are installed *with* standard library” Ben Finney <bignose@debian.org> - 2019-01-24 00:20 +0100
Re: Command to query “Python versions that are installed *with* standard library” Matthias Klose <doko@debian.org> - 2019-01-24 09:30 +0100
Re: Command to query “Python versions that are installed *with* standard library” Ben Finney <bignose@debian.org> - 2019-01-25 06:30 +0100
Re: Command to query “Python versions that are installed *with* standard library” Dmitry Shachnev <mitya57@debian.org> - 2019-01-24 13:30 +0100
Re: Command to query “Python versions that are installed *with* standard library” Ben Finney <bignose@debian.org> - 2019-01-25 06:30 +0100
| From | Ben Finney <bignose@debian.org> |
|---|---|
| Date | 2019-01-24 00:20 +0100 |
| Subject | Command to query “Python versions that are installed *with* standard library” |
| Message-ID | <xjzYl-Qc-7@gated-at.bofh.it> |
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
[toc] | [next] | [standalone]
| From | Matthias Klose <doko@debian.org> |
|---|---|
| Date | 2019-01-24 09:30 +0100 |
| Subject | Re: Command to query “Python versions that are installed *with* standard library” |
| Message-ID | <xjIyB-66p-3@gated-at.bofh.it> |
| In reply to | #11273 |
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?
[toc] | [prev] | [next] | [standalone]
| From | Ben Finney <bignose@debian.org> |
|---|---|
| Date | 2019-01-25 06:30 +0100 |
| Message-ID | <xk2dX-1p1-1@gated-at.bofh.it> |
| In reply to | #11274 |
Matthias Klose <doko@debian.org> 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
[toc] | [prev] | [next] | [standalone]
| From | Dmitry Shachnev <mitya57@debian.org> |
|---|---|
| Date | 2019-01-24 13:30 +0100 |
| Subject | Re: Command to query “Python versions that are installed *with* standard library” |
| Message-ID | <xjMiR-8pn-1@gated-at.bofh.it> |
| In reply to | #11273 |
[Multipart message — attachments visible in raw view] — view raw
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
[toc] | [prev] | [next] | [standalone]
| From | Ben Finney <bignose@debian.org> |
|---|---|
| Date | 2019-01-25 06:30 +0100 |
| Message-ID | <xk2dX-1p1-7@gated-at.bofh.it> |
| In reply to | #11275 |
Dmitry Shachnev <mitya57@debian.org> 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
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.maint.python
csiph-web