Skip to content

Commit

Permalink
Reland 3.11 Conda for Mac/Windows
Browse files Browse the repository at this point in the history
ghstack-source-id: bdf175280a75819eae8fb32b35040202d0d67bfc
Pull Request resolved: #1022
  • Loading branch information
NivekT committed Feb 16, 2023
1 parent 1774c48 commit fd79219
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/_build_test_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ jobs:
- 3.8
- 3.9
- "3.10"
- 3.11
- "3.11"
steps:
- name: Checkout Source Repository
uses: actions/checkout@v3
Expand Down
12 changes: 11 additions & 1 deletion packaging/build_conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fd79219

Please sign in to comment.