Skip to content

Commit 874438f

Browse files
committed
Release 2.2.0 prep script modifications
1 parent c162c75 commit 874438f

File tree

4 files changed

+9
-15
lines changed

4 files changed

+9
-15
lines changed

release/pypi/prep_binary_for_pypi.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,6 @@ for whl_file in "$@"; do
5252
(
5353
set -x
5454

55-
# Special build with pypi cudnn remove it from version
56-
if [[ $whl_file == *"with.pypi.cudnn"* ]]; then
57-
rm -rf "${whl_dir}/caffe2"
58-
rm -rf "${whl_dir}"/torch/lib/libnvrtc*
59-
60-
sed -i -e "s/-with-pypi-cudnn//g" "${whl_dir}/torch/version.py"
61-
fi
62-
6355
find "${dist_info_folder}" -type f -exec sed -i "s!${version_with_suffix}!${version_no_suffix}!" {} \;
6456
# Moves distinfo from one with a version suffix to one without
6557
# Example: torch-1.8.0+cpu.dist-info => torch-1.8.0.dist-info

release/pypi/promote_pypi_to_staging.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@ upload_pypi_to_staging() {
2121
}
2222

2323
# Uncomment these to promote to pypi
24-
PYTORCH_LINUX_VERSION_SUFFIX="%2Bcu121.with.pypi.cudnn"
2524
LINUX_VERSION_SUFFIX="%2Bcu121"
2625
CPU_VERSION_SUFFIX="%2Bcpu"
2726
MACOS_X86_64="macosx_.*_x86_64"
2827
MACOS_ARM64="macosx_.*_arm64"
2928

30-
PLATFORM="linux_x86_64" VERSION_SUFFIX="${PYTORCH_LINUX_VERSION_SUFFIX}" upload_pypi_to_staging torch "${PYTORCH_VERSION}"
29+
PLATFORM="linux_x86_64" VERSION_SUFFIX="${LINUX_VERSION_SUFFIX}" upload_pypi_to_staging torch "${PYTORCH_VERSION}"
3130
PLATFORM="manylinux2014_aarch64" VERSION_SUFFIX="" upload_pypi_to_staging torch "${PYTORCH_VERSION}"
3231
PLATFORM="win_amd64" VERSION_SUFFIX="${CPU_VERSION_SUFFIX}" upload_pypi_to_staging torch "${PYTORCH_VERSION}"
3332
PLATFORM="${MACOS_X86_64}" VERSION_SUFFIX="" upload_pypi_to_staging torch "${PYTORCH_VERSION}" # intel mac

release/pypi/upload_pypi_to_staging.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ set -eou pipefail
55
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
66
# Allow for users to pass PACKAGE_NAME
77

8+
# Set TMPDIR
9+
#export TMPDIR="/home/ec2-user/github/builder/release/pypi/work"
10+
811
# For use with other packages, i.e. torchvision, etc.
912
PACKAGE_NAME=${PACKAGE_NAME:-torch}
1013

release/release_versions.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/usr/bin/env bash
22

33
# Make sure to update these versions when doing a release first
4-
PYTORCH_VERSION=${PYTORCH_VERSION:-2.1.1}
5-
TORCHVISION_VERSION=${TORCHVISION_VERSION:-0.16.1}
6-
TORCHAUDIO_VERSION=${TORCHAUDIO_VERSION:-2.1.1}
7-
TORCHTEXT_VERSION=${TORCHTEXT_VERSION:-0.16.1}
4+
PYTORCH_VERSION=${PYTORCH_VERSION:-2.2.0}
5+
TORCHVISION_VERSION=${TORCHVISION_VERSION:-0.17.0}
6+
TORCHAUDIO_VERSION=${TORCHAUDIO_VERSION:-2.2.0}
7+
TORCHTEXT_VERSION=${TORCHTEXT_VERSION:-0.17.0}
88
TORCHDATA_VERSION=${TORCHDATA_VERSION:-0.7.1}
9-
TORCHREC_VERSION=${TORCHREC_VERSION:-0.6.0}
9+
TORCHREC_VERSION=${TORCHREC_VERSION:-0.6.0}

0 commit comments

Comments
 (0)