Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.9'

- name: Install prerequisites
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.9'

- name: Cache NDK
id: cache_ndk
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.9'

- name: setup Xcode version
run: sudo xcode-select -s /Applications/Xcode_${{ env.xcodeVersion }}.app/Contents/Developer
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.9'

- name: Install prerequisites
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.9'

- name: Add msbuild to PATH (windows)
if: startsWith(matrix.os, 'windows')
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_starter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ on:
permissions: write-all

env:
pythonVersion: '3.8'
pythonVersion: '3.9'

jobs:
check_and_prepare:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_tvos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.9'

- name: setup Xcode version
run: sudo xcode-select -s /Applications/Xcode_${{ env.xcodeVersion }}.app/Contents/Developer
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.9'

- name: Add msbuild to PATH (windows)
uses: microsoft/setup-msbuild@v1.1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate_swig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.9'

- name: Install prerequisites
shell: bash
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ env:
triggerLabelPrefix: "tests-requested: "
triggerLabelFull: "tests-requested: full"
triggerLabelQuick: "tests-requested: quick"
pythonVersion: '3.8'
pythonVersion: '3.9'
artifactRetentionDays: 2

jobs:
Expand Down Expand Up @@ -190,7 +190,7 @@ jobs:
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.9'
- name: Install python deps
timeout-minutes: 10
shell: bash
Expand Down Expand Up @@ -371,7 +371,7 @@ jobs:
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.9'
- name: Install python deps
timeout-minutes: 10
shell: bash
Expand Down Expand Up @@ -497,7 +497,7 @@ jobs:
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.9'
- name: Install python deps
timeout-minutes: 10
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.9

- name: Install python deps
shell: bash
Expand Down Expand Up @@ -277,7 +277,7 @@ jobs:
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.9
- name: Generate token for GitHub API
# This step is necessary because the existing GITHUB_TOKEN cannot be used inside one workflow to trigger another.
#
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/retry-test-failures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.9

- uses: actions/checkout@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update_versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.9

- name: Install python deps
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion editor/app/src/PythonExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public string ScriptPath {

// Just 'python' might prompt the user for input, so try that last
private static readonly string[] PYTHON_INTERPRETERS = {
"python3", "python3.8","python3.7", "python2.7", "python2", "python"
"python3", "python3.9", "python3.8","python3.7", "python2.7", "python2", "python"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The order of interpreters in this array is significant. By placing python3.9 after the generic python3, it's possible that an older version of Python (like 3.8) is picked up if python3 symlinks to it, even if python3.9 is available. To make the interpreter discovery more robust and align with the goal of using Python 3.9 when possible, it's better to list specific versions from newest to oldest before the generic python3 command.

          "python3.9", "python3.8", "python3.7", "python3", "python2.7", "python2", "python"

};

private static string s_pythonInterpreter = null;
Expand Down
Loading