mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Continuation of https://github.com/pytorch/pytorch/pull/144870 Remove conda logic from scripts: 1. Remove conda build from triton build script 2. Remove conda checks from setup.py 3. Remove conda from release scripts 4. Script read_conda_versions.sh is not used (checked via git grep) Related to: https://github.com/pytorch/pytorch/issues/138506 Pull Request resolved: https://github.com/pytorch/pytorch/pull/145015 Approved by: https://github.com/malfet, https://github.com/Skylion007
32 lines
767 B
Bash
Executable File
32 lines
767 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eou pipefail
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
source "${DIR}/promote/common_utils.sh"
|
|
|
|
if [[ -z "${RESTORE_FROM:-}" ]]; then
|
|
echo "ERROR: RESTORE_FROM environment variable must be specified"
|
|
echo " example: RESTORE_FROM=v1.6.0-rc3 ${0}"
|
|
exit 1
|
|
fi
|
|
|
|
DRY_RUN=${DRY_RUN:-enabled}
|
|
|
|
PYTORCH_S3_BACKUP_BUCKET=${PYTORCH_S3_BACKUP_BUCKET:-s3://pytorch-backup/${RESTORE_FROM}}
|
|
PYTORCH_S3_TEST_BUCKET=${PYTORCH_S3_TEST_BUCKET:-s3://pytorch/}
|
|
PYTORCH_S3_FROM=${PYTORCH_S3_FROM:-${PYTORCH_S3_BACKUP_BUCKET}}
|
|
PYTORCH_S3_TO=${PYTORCH_S3_TO:-s3://pytorch/}
|
|
|
|
restore_wheels() {
|
|
aws_promote torch whl
|
|
}
|
|
|
|
restore_libtorch() {
|
|
aws_promote libtorch-* libtorch
|
|
}
|
|
|
|
|
|
restore_wheels
|
|
restore_libtorch
|