Skip to content

Commit c71612b

Browse files
committed
Fixes
1 parent 870cb04 commit c71612b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

conda/build_pytorch.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ if [[ -x "/remote/anaconda_token" ]]; then
33
. /remote/anaconda_token || true
44
fi
55

6+
set -ex
7+
68
# Defined a portable sed that should work on both mac and linux
79
if [ "$(uname)" == 'Darwin' ]; then
8-
portable_sed='sed -E -i \'\''
10+
portable_sed="sed -E -i ''"
911
else
1012
portable_sed='sed --regexp-extended -i'
1113
fi
1214

13-
set -ex
14-
1515
echo "Building cuda version $1 and pytorch version: $2 build_number: $3"
1616
desired_cuda="$1"
1717
build_version="$2"
@@ -73,10 +73,10 @@ echo "Using conda-build folder $build_folder"
7373

7474
# Alter the meta.yaml to use passed in Github repo/branch
7575
if [[ -n "$GITHUB_ORG" ]]; then
76-
portable_sed "s#git_url:.*#git_url: https://github.com/$GITHUB_ORG/pytorch#g" "$build_folder/meta.yaml"
76+
"$portable_sed" "s#git_url:.*#git_url: https://github.com/$GITHUB_ORG/pytorch#g" "$build_folder/meta.yaml"
7777
fi
7878
if [[ -n "$PYTORCH_BRANCH" ]]; then
79-
portable_sed "s#git_rev:.*#git_rev: $PYTORCH_BRANCH#g" "$build_folder/meta.yaml"
79+
"$portable_sed" "s#git_rev:.*#git_rev: $PYTORCH_BRANCH#g" "$build_folder/meta.yaml"
8080
fi
8181

8282
# Loop through all Python versions to build a package for each

0 commit comments

Comments
 (0)