diff options
author | Leah Rowe <leah@libreboot.org> | 2025-01-06 03:54:38 +0000 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-01-06 03:54:38 +0000 |
commit | 4210ee68ea25dd41c05f3a2a6d8880e5aedeb2c3 (patch) | |
tree | bfb7c82f5140738519a9b4ad51ca51f5f8f7e349 /config/submodule/coreboot/next | |
parent | 8c7ba6131cc0bd5fb31bbe80ec5f526f3c9b6843 (diff) |
See:
https://docs.python.org/3/library/sys.html#sys.version_info
The sys.version_info tuple is a more reliable way to
get the version. Our previous logic assumed that Python
would always output "Python versionnumber", but this may
not always be how it works. We've seen this for example
where Debian modifies some GNU toolchains to include Debian
something in the output.
Python has a standard method built in for outputting exact
the information we need. In my system, what I got was this:
(3, 11, 2, 'final', 0)
That output was from running this command:
python -c 'import sys; print(sys.version_info[:])'
This is much more robust, so use this instead.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'config/submodule/coreboot/next')
0 files changed, 0 insertions, 0 deletions