(core) Upgrade to Python 3.11

Summary: Replaced mentions of Python 3.9 with 3.11

Test Plan: this

Reviewers: paulfitz, georgegevoian

Reviewed By: paulfitz, georgegevoian

Subscribers: dsagal, georgegevoian, paulfitz

Differential Revision: https://phab.getgrist.com/D3980
This commit is contained in:
Alex Hall
2023-08-04 17:59:52 +02:00
parent 6416994c22
commit 5dfa9a542c
8 changed files with 23 additions and 19 deletions

View File

@@ -173,9 +173,9 @@ if not include_python2:
# We expect python3 in /usr/bin or /usr/local/bin.
candidates = [
path
# Pick the most generic python if not matching python3.9.
# Pick the most generic python if not matching python3.11.
# Sorry this is delicate because of restores, mounts, symlinks.
for pattern in ['python3.9', 'python3', 'python3*']
for pattern in ['python3.11', 'python3.10', 'python3.9', 'python3', 'python3*']
for root in ['/usr/local', '/usr']
for path in glob.glob(f'{root}/bin/{pattern}')
if os.path.exists(path)