Lines Matching +full:3 +full:- +full:tuple
2 # SPDX-License-Identifier: GPL-2.0-or-later
3 # Copyright (c) 2017-2025 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
36 """Ïnitialize self.version tuple from a version string"""
41 """Convert a major.minor.patch version into a tuple"""
42 return tuple(int(x) for x in version.split("."))
46 """Returns a version tuple as major.minor.patch"""
57 if not max_len or len(cmd_line[-1]) + len(w) < max_len:
58 cmd_line[-1] += " " + w
61 cmd_line[-1] += " \\"
69 """Returns a version tuple as major.minor.patch from self.version"""
80 if sys.version_info < (3, 7):
85 result = subprocess.run([cmd, "--version"],
102 Detect if are out there any python 3.xy version newer than the
109 "python3.[0-9][0-9]",
110 "python3.[0-9]",
131 for Sphinx build. If not, re-run with a newer version if found.
133 cur_ver = sys.version_info[:3]