From 4ab0b45d56057540f59bfc821e6338267f58baa1 Mon Sep 17 00:00:00 2001 From: Kevin Tse Date: Thu, 16 Feb 2023 12:12:11 -0800 Subject: [PATCH] Reland 3.11 Conda for Mac/Windows (#1022) Summary: Pull Request resolved: https://github.com/pytorch/data/pull/1022 Test Plan: Imported from OSS Reviewed By: ejguan Differential Revision: D43367475 Pulled By: NivekT fbshipit-source-id: 3087326aab04efbc4e7dde3232302903d3e4eb9e --- .github/workflows/_build_test_upload.yml | 2 +- packaging/build_conda.sh | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/_build_test_upload.yml b/.github/workflows/_build_test_upload.yml index 22f8bc30a..06e1a7f8d 100644 --- a/.github/workflows/_build_test_upload.yml +++ b/.github/workflows/_build_test_upload.yml @@ -310,7 +310,7 @@ jobs: - 3.8 - 3.9 - "3.10" - - 3.11 + - "3.11" steps: - name: Checkout Source Repository uses: actions/checkout@v3 diff --git a/packaging/build_conda.sh b/packaging/build_conda.sh index 3a1dc5bc6..ed3987d1b 100755 --- a/packaging/build_conda.sh +++ b/packaging/build_conda.sh @@ -14,9 +14,19 @@ export CU_VERSION=cpu export NO_CUDA_PACKAGE=1 export BUILD_TYPE="conda" +if [[ "$PYTHON_VERSION" == "3.11" ]]; then + export CONDA_CHANNEL_FLAGS="${CONDA_CHANNEL_FLAGS} -c malfet" +fi + export SOURCE_ROOT_DIR="$PWD" setup_env setup_conda_pytorch_constraint mkdir -p conda-bld -conda build $CONDA_CHANNEL_FLAGS --no-anaconda-upload --output-folder conda-bld --python "$PYTHON_VERSION" packaging/torchdata +conda build \ + -c defaults \ + $CONDA_CHANNEL_FLAGS \ + --no-anaconda-upload \ + --output-folder conda-bld \ + --python "$PYTHON_VERSION" \ + packaging/torchdata