Skip to content

Commit fbd4949

Browse files
committed
Fix a bug
1 parent 1576f32 commit fbd4949

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.ci/scripts/utils.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ install_pytorch_and_domains() {
6464

6565
SYSTEM_NAME=$(uname)
6666
# The platform version needs to match MACOSX_DEPLOYMENT_TARGET used to build the wheel
67-
PLATFORM=$(python -c 'import sysconfig; platform=sysconfig.get_platform(); platform[1]="14_0"; print("_".join(platform))')
67+
PLATFORM=$(python -c 'import sysconfig; platform=sysconfig.get_platform().split("-"); platform[1]="14_0"; print("_".join(platform))')
6868
PYTHON_VERSION=$(python -c 'import platform; v=platform.python_version_tuple(); print(f"{v[0]}{v[1]}")')
6969
TORCH_RELEASE=$(cat version.txt)
7070
TORCH_SHORT_HASH=${TORCH_VERSION:0:7}

0 commit comments

Comments
 (0)