diff --git a/.github/workflows/macos-build.yml b/.github/workflows/macos-build.yml index 8d6c7ce7a..774feed21 100644 --- a/.github/workflows/macos-build.yml +++ b/.github/workflows/macos-build.yml @@ -23,7 +23,7 @@ jobs: - uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: '3.10' - name: Install build dependencies uses: ./.github/actions/install-deps diff --git a/env/build_venv.sh b/env/build_venv.sh index 33aa7e154..96d1277f6 100755 --- a/env/build_venv.sh +++ b/env/build_venv.sh @@ -5,8 +5,9 @@ OS=$(uname) TTMLIR_VENV=$TTMLIR_TOOLCHAIN_DIR/venv +TTMLIR_PYTHON_VERSION="${TTMLIR_PYTHON_VERSION:-python3.10}" -python3 -m venv $TTMLIR_VENV +$TTMLIR_PYTHON_VERSION -m venv $TTMLIR_VENV source $CURRENT_SOURCE_DIR/activate python -m pip install --upgrade pip pip install -r $CURRENT_SOURCE_DIR/build-requirements.txt