From 2948a4f1d29869179b444826a61c05fe94eedf43 Mon Sep 17 00:00:00 2001 From: Kevin Tse Date: Thu, 16 Feb 2023 14:09:41 -0500 Subject: [PATCH] Reland 3.11 Conda for Mac/Windows ghstack-source-id: bdf175280a75819eae8fb32b35040202d0d67bfc Pull Request resolved: https://github.com/pytorch/data/pull/1022 --- .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