scripts: Fix manylinux2014 promotion to pypi (#70003)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/70003

Signed-off-by: Eli Uriegas <eliuriegas@fb.com>

Test Plan: Imported from OSS

Reviewed By: jbschlosser, janeyx99

Differential Revision: D33143730

Pulled By: seemethere

fbshipit-source-id: 83a46047fbfe4709e841fbfcaa75e434ff325be5
This commit is contained in:
Eli Uriegas 2021-12-15 14:53:34 -08:00 committed by Facebook GitHub Bot
parent 38cfacd817
commit b28a4100ff

View File

@ -40,7 +40,11 @@ if [[ $DRY_RUN = "disabled" ]]; then
fi fi
for pkg in ${pkgs_to_promote}; do for pkg in ${pkgs_to_promote}; do
pkg_basename="$(basename "${pkg//linux/manylinux1}")" pkg_basename="$(basename "${pkg}")"
# Don't attempt to change if manylinux2014
if [[ "${pkg}" != *manylinux2014* ]]; then
pkg_basename="$(basename "${pkg//linux/manylinux1}")"
fi
orig_pkg="${tmp_dir}/${pkg_basename}" orig_pkg="${tmp_dir}/${pkg_basename}"
( (
set -x set -x