CI: Print detailed Python version#12176
Conversation
|
For merge, it could also be useful in the future. python/cpython#117120 is a potential fix for #12174. For that PR, our own doctests are back down from ~45 mins to ~10 mins. |
chrisjsewell
left a comment
There was a problem hiding this comment.
the more info the better thanks 😄
|
It's been more than 10 years that I was coding in Python and I didn't know about this |
The simpler form would be |
It was added in 3.6: https://docs.python.org/3/using/cmdline.html#cmdoption-version |
Purpose
Detail
Running
pythonwith a single--versiongives info like:Running with a double
--version --versiongives more details:This contains a commit hash and timestamp, which could be useful in identifying the Python version in more details.