From 494f193747dcdf6b59c8d93d244eac06333d4dbf Mon Sep 17 00:00:00 2001 From: atalman Date: Tue, 4 Mar 2025 06:08:56 -0800 Subject: [PATCH 01/20] Test fix for python 3.13t --- tools/scripts/generate_binary_build_matrix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/scripts/generate_binary_build_matrix.py b/tools/scripts/generate_binary_build_matrix.py index 27b28e5609..2ae41ed90e 100755 --- a/tools/scripts/generate_binary_build_matrix.py +++ b/tools/scripts/generate_binary_build_matrix.py @@ -154,7 +154,7 @@ def initialize_globals(channel: str, build_python_only: bool) -> None: ROCM_ARCHES = ROCM_ARCHES_DICT[channel] if build_python_only: # Only select the oldest version of python if building a python only package - PYTHON_ARCHES = [PYTHON_ARCHES_DICT[channel][0]] + PYTHON_ARCHES = [PYTHON_ARCHES_DICT[channel][-1]] else: PYTHON_ARCHES = PYTHON_ARCHES_DICT[channel] WHEEL_CONTAINER_IMAGES = { From b07e03eb9e8b5a2d2b4d7b7844af588969a8e854 Mon Sep 17 00:00:00 2001 From: atalman Date: Tue, 4 Mar 2025 06:11:05 -0800 Subject: [PATCH 02/20] fix --- tools/scripts/generate_binary_build_matrix.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/scripts/generate_binary_build_matrix.py b/tools/scripts/generate_binary_build_matrix.py index 2ae41ed90e..a195322359 100755 --- a/tools/scripts/generate_binary_build_matrix.py +++ b/tools/scripts/generate_binary_build_matrix.py @@ -154,7 +154,7 @@ def initialize_globals(channel: str, build_python_only: bool) -> None: ROCM_ARCHES = ROCM_ARCHES_DICT[channel] if build_python_only: # Only select the oldest version of python if building a python only package - PYTHON_ARCHES = [PYTHON_ARCHES_DICT[channel][-1]] + PYTHON_ARCHES = [PYTHON_ARCHES_DICT[channel][0]] else: PYTHON_ARCHES = PYTHON_ARCHES_DICT[channel] WHEEL_CONTAINER_IMAGES = { @@ -476,7 +476,7 @@ def generate_wheels_matrix( arches += [XPU] if limit_pr_builds: - python_versions = [python_versions[0]] + python_versions = [python_versions[-1]] global WHEEL_CONTAINER_IMAGES From fb5ad4895ffea72f0e9f0bee60db50ebd750f03a Mon Sep 17 00:00:00 2001 From: atalman Date: Tue, 4 Mar 2025 06:16:48 -0800 Subject: [PATCH 03/20] pin --- .github/actions/setup-binary-builds/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/setup-binary-builds/action.yml b/.github/actions/setup-binary-builds/action.yml index 7cbadbc9e8..795f153c84 100644 --- a/.github/actions/setup-binary-builds/action.yml +++ b/.github/actions/setup-binary-builds/action.yml @@ -143,7 +143,7 @@ runs: if [[ "${PYTHON_VERSION:-}" == "3.13t" ]]; then export PYTHON_VERSION=3.13 - export CONDA_EXTRA_PARAM=" python-freethreading -c conda-forge" + export CONDA_EXTRA_PARAM=" python-freethreading==3.13.0 -c conda-forge" if [[ "$(uname)" != Darwin ]]; then # Pin conda and conda-libmamba-solver for 3.13t linux build # this solver allows us to install anaconda dependencies on From bdf0ffb6defbaff7568173a2410b71699d129d67 Mon Sep 17 00:00:00 2001 From: atalman Date: Tue, 4 Mar 2025 06:26:57 -0800 Subject: [PATCH 04/20] fix --- .github/actions/setup-binary-builds/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/setup-binary-builds/action.yml b/.github/actions/setup-binary-builds/action.yml index 795f153c84..97a9ee5db2 100644 --- a/.github/actions/setup-binary-builds/action.yml +++ b/.github/actions/setup-binary-builds/action.yml @@ -142,8 +142,8 @@ runs: export CONDA_EXTRA_PARAM="" if [[ "${PYTHON_VERSION:-}" == "3.13t" ]]; then - export PYTHON_VERSION=3.13 - export CONDA_EXTRA_PARAM=" python-freethreading==3.13.0 -c conda-forge" + export PYTHON_VERSION=3.13.1 + export CONDA_EXTRA_PARAM=" python-freethreading==3.13.1 -c conda-forge" if [[ "$(uname)" != Darwin ]]; then # Pin conda and conda-libmamba-solver for 3.13t linux build # this solver allows us to install anaconda dependencies on From 152eb899d04211a66389611a1502be4b67fd3785 Mon Sep 17 00:00:00 2001 From: atalman Date: Tue, 4 Mar 2025 09:21:19 -0800 Subject: [PATCH 05/20] test --- .github/workflows/test_build_wheels_linux_with_cuda.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_build_wheels_linux_with_cuda.yml b/.github/workflows/test_build_wheels_linux_with_cuda.yml index 750ec0e551..a3dc7dc41a 100644 --- a/.github/workflows/test_build_wheels_linux_with_cuda.yml +++ b/.github/workflows/test_build_wheels_linux_with_cuda.yml @@ -47,7 +47,7 @@ jobs: name: ${{ matrix.repository }} with: repository: ${{ matrix.repository }} - ref: nightly + ref: main test-infra-repository: ${{ github.repository }} test-infra-ref: ${{ github.ref }} build-matrix: ${{ needs.generate-matrix.outputs.matrix }} From 79c579b4793309931fcc0bce0a422af4619c98cf Mon Sep 17 00:00:00 2001 From: atalman Date: Tue, 4 Mar 2025 09:43:07 -0800 Subject: [PATCH 06/20] test --- .github/workflows/build_wheels_linux.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build_wheels_linux.yml b/.github/workflows/build_wheels_linux.yml index ab39cec759..1b2a7b698a 100644 --- a/.github/workflows/build_wheels_linux.yml +++ b/.github/workflows/build_wheels_linux.yml @@ -230,6 +230,8 @@ jobs: cache-key: ${{ inputs.cache-key }} repository: ${{ inputs.repository }} script: ${{ inputs.pre-script }} + env: + REF: test_313t_m1 - name: Build the wheel (python-build-package) if: ${{ inputs.build-platform == 'python-build-package' }} working-directory: ${{ inputs.repository }} From c8fe5b1f513d3af96f95e34e2a9310be1effd18e Mon Sep 17 00:00:00 2001 From: atalman Date: Tue, 4 Mar 2025 09:52:07 -0800 Subject: [PATCH 07/20] fix --- .github/workflows/build_wheels_macos.yml | 2 ++ .github/workflows/test_build_wheels_m1.yml | 6 +----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_wheels_macos.yml b/.github/workflows/build_wheels_macos.yml index 69d1244c27..10f226e837 100644 --- a/.github/workflows/build_wheels_macos.yml +++ b/.github/workflows/build_wheels_macos.yml @@ -164,6 +164,8 @@ jobs: cache-key: ${{ inputs.cache-key }} repository: ${{ inputs.repository }} script: ${{ inputs.pre-script }} + env: + REF: test_313t_m1 - name: Build clean working-directory: ${{ inputs.repository }} run: | diff --git a/.github/workflows/test_build_wheels_m1.yml b/.github/workflows/test_build_wheels_m1.yml index 9bc3cc8f83..c5426affa8 100644 --- a/.github/workflows/test_build_wheels_m1.yml +++ b/.github/workflows/test_build_wheels_m1.yml @@ -28,10 +28,6 @@ jobs: fail-fast: false matrix: include: - - repository: pytorch/audio - conda-package-directory: packaging/torchaudio - smoke-test-script: test/smoke_test/smoke_test.py - package-name: torchaudio - repository: pytorch/vision pre-script: packaging/pre_build_script.sh post-script: packaging/post_build_script.sh @@ -43,7 +39,7 @@ jobs: name: ${{ matrix.repository }} with: repository: ${{ matrix.repository }} - ref: nightly + ref: test_313t_m1 test-infra-repository: ${{ github.repository }} test-infra-ref: ${{ github.ref }} build-matrix: ${{ needs.generate-matrix.outputs.matrix }} From 70a2381bc2b0dbd1c6b5b82f6722320f116cda23 Mon Sep 17 00:00:00 2001 From: atalman Date: Tue, 4 Mar 2025 10:03:52 -0800 Subject: [PATCH 08/20] fix --- .github/actions/setup-binary-builds/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/setup-binary-builds/action.yml b/.github/actions/setup-binary-builds/action.yml index 97a9ee5db2..d9bdc7a98d 100644 --- a/.github/actions/setup-binary-builds/action.yml +++ b/.github/actions/setup-binary-builds/action.yml @@ -142,8 +142,8 @@ runs: export CONDA_EXTRA_PARAM="" if [[ "${PYTHON_VERSION:-}" == "3.13t" ]]; then - export PYTHON_VERSION=3.13.1 - export CONDA_EXTRA_PARAM=" python-freethreading==3.13.1 -c conda-forge" + export PYTHON_VERSION=3.13.0 + export CONDA_EXTRA_PARAM=" python-freethreading==3.13.0 -c conda-forge" if [[ "$(uname)" != Darwin ]]; then # Pin conda and conda-libmamba-solver for 3.13t linux build # this solver allows us to install anaconda dependencies on From e90e5026fa142b1b14d5e9c243ef309513143b0d Mon Sep 17 00:00:00 2001 From: atalman Date: Tue, 4 Mar 2025 16:26:02 -0800 Subject: [PATCH 09/20] test --- .github/actions/setup-binary-builds/action.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/actions/setup-binary-builds/action.yml b/.github/actions/setup-binary-builds/action.yml index d9bdc7a98d..668921548c 100644 --- a/.github/actions/setup-binary-builds/action.yml +++ b/.github/actions/setup-binary-builds/action.yml @@ -144,12 +144,10 @@ runs: if [[ "${PYTHON_VERSION:-}" == "3.13t" ]]; then export PYTHON_VERSION=3.13.0 export CONDA_EXTRA_PARAM=" python-freethreading==3.13.0 -c conda-forge" - if [[ "$(uname)" != Darwin ]]; then - # Pin conda and conda-libmamba-solver for 3.13t linux build - # this solver allows us to install anaconda dependencies on - # python-freethreading on conda-forge environment - conda install conda==24.7.1 conda-libmamba-solver=24.1.0 - fi + # Pin conda and conda-libmamba-solver for 3.13t linux build + # this solver allows us to install anaconda dependencies on + # python-freethreading on conda-forge environment + conda install conda==24.7.1 conda-libmamba-solver=24.1.0 fi conda create \ From 3ec4838cd6fe21d8abeade0d9c3c9eca9698a806 Mon Sep 17 00:00:00 2001 From: atalman Date: Tue, 4 Mar 2025 16:35:47 -0800 Subject: [PATCH 10/20] test --- .github/actions/setup-binary-builds/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/setup-binary-builds/action.yml b/.github/actions/setup-binary-builds/action.yml index 668921548c..b50715edb1 100644 --- a/.github/actions/setup-binary-builds/action.yml +++ b/.github/actions/setup-binary-builds/action.yml @@ -147,7 +147,7 @@ runs: # Pin conda and conda-libmamba-solver for 3.13t linux build # this solver allows us to install anaconda dependencies on # python-freethreading on conda-forge environment - conda install conda==24.7.1 conda-libmamba-solver=24.1.0 + conda install conda=24.7.1 conda-libmamba-solver=24.1.0 fi conda create \ From bf6890f0c82ceb5b53c7e49aae6c8198f54f1de9 Mon Sep 17 00:00:00 2001 From: atalman Date: Tue, 4 Mar 2025 16:42:48 -0800 Subject: [PATCH 11/20] fix --- .github/actions/setup-binary-builds/action.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/actions/setup-binary-builds/action.yml b/.github/actions/setup-binary-builds/action.yml index b50715edb1..42cd88e977 100644 --- a/.github/actions/setup-binary-builds/action.yml +++ b/.github/actions/setup-binary-builds/action.yml @@ -144,10 +144,15 @@ runs: if [[ "${PYTHON_VERSION:-}" == "3.13t" ]]; then export PYTHON_VERSION=3.13.0 export CONDA_EXTRA_PARAM=" python-freethreading==3.13.0 -c conda-forge" - # Pin conda and conda-libmamba-solver for 3.13t linux build - # this solver allows us to install anaconda dependencies on - # python-freethreading on conda-forge environment - conda install conda=24.7.1 conda-libmamba-solver=24.1.0 + if [[ "$(uname)" != Darwin ]]; then + # Pin conda and conda-libmamba-solver for 3.13t linux build + # this solver allows us to install anaconda dependencies on + # python-freethreading on conda-forge environment + conda install conda=24.7.1 conda-libmamba-solver=24.1.0 + else + conda install -y conda=24.7.1 + conda install -y conda-libmamba-solver=24.1.0 + fi fi conda create \ From aad1d91cf6563df96a6f7cfaaf1b922a3a5ee726 Mon Sep 17 00:00:00 2001 From: atalman Date: Tue, 4 Mar 2025 17:08:33 -0800 Subject: [PATCH 12/20] fix --- .github/actions/setup-binary-builds/action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actions/setup-binary-builds/action.yml b/.github/actions/setup-binary-builds/action.yml index 42cd88e977..c96d29e4b1 100644 --- a/.github/actions/setup-binary-builds/action.yml +++ b/.github/actions/setup-binary-builds/action.yml @@ -150,6 +150,7 @@ runs: # python-freethreading on conda-forge environment conda install conda=24.7.1 conda-libmamba-solver=24.1.0 else + conda remove -y conda-anaconda-telemetry conda install -y conda=24.7.1 conda install -y conda-libmamba-solver=24.1.0 fi From a02cf572055fed9e96357320c3d667feca222ae6 Mon Sep 17 00:00:00 2001 From: atalman Date: Tue, 4 Mar 2025 17:22:17 -0800 Subject: [PATCH 13/20] fix --- .github/actions/setup-binary-builds/action.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/actions/setup-binary-builds/action.yml b/.github/actions/setup-binary-builds/action.yml index c96d29e4b1..2a1b42454a 100644 --- a/.github/actions/setup-binary-builds/action.yml +++ b/.github/actions/setup-binary-builds/action.yml @@ -150,9 +150,7 @@ runs: # python-freethreading on conda-forge environment conda install conda=24.7.1 conda-libmamba-solver=24.1.0 else - conda remove -y conda-anaconda-telemetry - conda install -y conda=24.7.1 - conda install -y conda-libmamba-solver=24.1.0 + CONDA_AUTO_UPDATE_CONDA=0 conda install -y conda=24.7.1 conda-libmamba-solver=24.1.0 fi fi From 65383e3d3594ca0fda552ba50f99569a80a2db8e Mon Sep 17 00:00:00 2001 From: atalman Date: Tue, 4 Mar 2025 17:40:38 -0800 Subject: [PATCH 14/20] test --- .github/actions/setup-binary-builds/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/setup-binary-builds/action.yml b/.github/actions/setup-binary-builds/action.yml index 2a1b42454a..14dbf1a151 100644 --- a/.github/actions/setup-binary-builds/action.yml +++ b/.github/actions/setup-binary-builds/action.yml @@ -150,7 +150,7 @@ runs: # python-freethreading on conda-forge environment conda install conda=24.7.1 conda-libmamba-solver=24.1.0 else - CONDA_AUTO_UPDATE_CONDA=0 conda install -y conda=24.7.1 conda-libmamba-solver=24.1.0 + conda install -y conda=24.9.0 conda-libmamba-solver=24.1.0 fi fi From e6c050639a5e399431f6d394549b97048e8ffe72 Mon Sep 17 00:00:00 2001 From: atalman Date: Tue, 4 Mar 2025 18:03:42 -0800 Subject: [PATCH 15/20] fox --- .github/actions/setup-binary-builds/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/setup-binary-builds/action.yml b/.github/actions/setup-binary-builds/action.yml index 14dbf1a151..329cdc6fb6 100644 --- a/.github/actions/setup-binary-builds/action.yml +++ b/.github/actions/setup-binary-builds/action.yml @@ -150,7 +150,7 @@ runs: # python-freethreading on conda-forge environment conda install conda=24.7.1 conda-libmamba-solver=24.1.0 else - conda install -y conda=24.9.0 conda-libmamba-solver=24.1.0 + conda install -y conda=24.9.2 fi fi From b528ee454a6f80fbe9ba6eba3ecfe2d273cdf219 Mon Sep 17 00:00:00 2001 From: atalman Date: Tue, 4 Mar 2025 18:06:17 -0800 Subject: [PATCH 16/20] test --- .github/actions/setup-binary-builds/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/setup-binary-builds/action.yml b/.github/actions/setup-binary-builds/action.yml index 329cdc6fb6..60808c3b57 100644 --- a/.github/actions/setup-binary-builds/action.yml +++ b/.github/actions/setup-binary-builds/action.yml @@ -150,7 +150,7 @@ runs: # python-freethreading on conda-forge environment conda install conda=24.7.1 conda-libmamba-solver=24.1.0 else - conda install -y conda=24.9.2 + conda install -y conda=24.11.0 fi fi From 058693ff934bb0fc1a82291df585db9929c7de1f Mon Sep 17 00:00:00 2001 From: atalman Date: Tue, 4 Mar 2025 18:30:15 -0800 Subject: [PATCH 17/20] fix --- .github/actions/setup-binary-builds/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/setup-binary-builds/action.yml b/.github/actions/setup-binary-builds/action.yml index 60808c3b57..e79821cb2f 100644 --- a/.github/actions/setup-binary-builds/action.yml +++ b/.github/actions/setup-binary-builds/action.yml @@ -150,7 +150,7 @@ runs: # python-freethreading on conda-forge environment conda install conda=24.7.1 conda-libmamba-solver=24.1.0 else - conda install -y conda=24.11.0 + conda install -y conda=24.11.0 conda-libmamba-solver=24.11.1 fi fi From 8fb4304e9aa9992b1f117dbf93a541f203726597 Mon Sep 17 00:00:00 2001 From: atalman Date: Tue, 4 Mar 2025 18:45:02 -0800 Subject: [PATCH 18/20] fix --- .github/actions/setup-binary-builds/action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actions/setup-binary-builds/action.yml b/.github/actions/setup-binary-builds/action.yml index e79821cb2f..c617c55acc 100644 --- a/.github/actions/setup-binary-builds/action.yml +++ b/.github/actions/setup-binary-builds/action.yml @@ -150,6 +150,7 @@ runs: # python-freethreading on conda-forge environment conda install conda=24.7.1 conda-libmamba-solver=24.1.0 else + conda config --env --add channels conda-forge conda install -y conda=24.11.0 conda-libmamba-solver=24.11.1 fi fi From 9d698b82b80640c30bdffe87c622a37a52bc9e8d Mon Sep 17 00:00:00 2001 From: atalman Date: Tue, 4 Mar 2025 19:13:33 -0800 Subject: [PATCH 19/20] fix --- .github/actions/setup-binary-builds/action.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/actions/setup-binary-builds/action.yml b/.github/actions/setup-binary-builds/action.yml index c617c55acc..cea49b48e4 100644 --- a/.github/actions/setup-binary-builds/action.yml +++ b/.github/actions/setup-binary-builds/action.yml @@ -118,6 +118,8 @@ runs: - name: Generate file from pytorch_pkg_helpers working-directory: ${{ inputs.repository }} shell: bash -l {0} + env: + PYTHON_VERSION: ${{ inputs.python-version }} run: | set -euxo pipefail CONDA_ENV="${RUNNER_TEMP}/pytorch_pkg_helpers_${GITHUB_RUN_ID}" @@ -132,6 +134,10 @@ runs: ${CONDA_RUN} python -m pytorch_pkg_helpers > "${BUILD_ENV_FILE}" cat "${BUILD_ENV_FILE}" echo "BUILD_ENV_FILE=${BUILD_ENV_FILE}" >> "${GITHUB_ENV}" + + if [[ "${PYTHON_VERSION:-}" == "3.13t" ]]; then + ${CONDA_RUN} conda install -y conda=24.7.1 conda-libmamba-solver=24.1.0 + fi - name: Setup conda environment for build shell: bash -l {0} env: @@ -148,10 +154,7 @@ runs: # Pin conda and conda-libmamba-solver for 3.13t linux build # this solver allows us to install anaconda dependencies on # python-freethreading on conda-forge environment - conda install conda=24.7.1 conda-libmamba-solver=24.1.0 - else - conda config --env --add channels conda-forge - conda install -y conda=24.11.0 conda-libmamba-solver=24.11.1 + conda install -y conda=24.7.1 conda-libmamba-solver=24.1.0 fi fi @@ -167,3 +170,7 @@ runs: echo "CONDA_ENV=${CONDA_ENV}" >> "${GITHUB_ENV}" echo "CONDA_RUN=conda run -p ${CONDA_ENV}" >> "${GITHUB_ENV}" + + # if [[ "${PYTHON_VERSION:-}" == "3.13t" ]]; then + # CONDA_RUN conda config --env --add channels conda-forge + # fi From 0e762e962ce6fadf85270c8382faa155614c4b5d Mon Sep 17 00:00:00 2001 From: atalman Date: Wed, 5 Mar 2025 09:55:18 -0800 Subject: [PATCH 20/20] fix --- .../actions/setup-binary-builds/action.yml | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/.github/actions/setup-binary-builds/action.yml b/.github/actions/setup-binary-builds/action.yml index cea49b48e4..e3a1a03d9d 100644 --- a/.github/actions/setup-binary-builds/action.yml +++ b/.github/actions/setup-binary-builds/action.yml @@ -134,10 +134,6 @@ runs: ${CONDA_RUN} python -m pytorch_pkg_helpers > "${BUILD_ENV_FILE}" cat "${BUILD_ENV_FILE}" echo "BUILD_ENV_FILE=${BUILD_ENV_FILE}" >> "${GITHUB_ENV}" - - if [[ "${PYTHON_VERSION:-}" == "3.13t" ]]; then - ${CONDA_RUN} conda install -y conda=24.7.1 conda-libmamba-solver=24.1.0 - fi - name: Setup conda environment for build shell: bash -l {0} env: @@ -148,14 +144,19 @@ runs: export CONDA_EXTRA_PARAM="" if [[ "${PYTHON_VERSION:-}" == "3.13t" ]]; then - export PYTHON_VERSION=3.13.0 - export CONDA_EXTRA_PARAM=" python-freethreading==3.13.0 -c conda-forge" - if [[ "$(uname)" != Darwin ]]; then - # Pin conda and conda-libmamba-solver for 3.13t linux build - # this solver allows us to install anaconda dependencies on - # python-freethreading on conda-forge environment - conda install -y conda=24.7.1 conda-libmamba-solver=24.1.0 + export PYTHON_VERSION=3.13 + export CONDA_EXTRA_PARAM=" python-freethreading -c conda-forge" + + # Hack to pin downgrade conda conda-libmamba + # Pin conda and conda-libmamba-solver for 3.13t linux build + # this solver allows us to install anaconda dependencies on + # python-freethreading on conda-forge environment + if [[ "$(uname)" == Darwin ]]; then + # required to be able to downgrade on MacOS m1 side + conda install -y python=3.9 + conda uninstall -y conda-anaconda-telemetry conda-anaconda-tos fi + conda install -y conda=24.7.1 conda-libmamba-solver=24.1.0 fi conda create \ @@ -170,7 +171,3 @@ runs: echo "CONDA_ENV=${CONDA_ENV}" >> "${GITHUB_ENV}" echo "CONDA_RUN=conda run -p ${CONDA_ENV}" >> "${GITHUB_ENV}" - - # if [[ "${PYTHON_VERSION:-}" == "3.13t" ]]; then - # CONDA_RUN conda config --env --add channels conda-forge - # fi