Skip to content

Commit

Permalink
Fix binary size check build publish step. (#20298)
Browse files Browse the repository at this point in the history
Add `--user` option to pip install command.

Error:
```
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/usr/local/bin/f2py'
Consider using the `--user` option or check the permissions.
```

See #19877.
  • Loading branch information
edgchen1 authored Apr 15, 2024
1 parent 6e4516c commit 287ecea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ stages:
echo "File not found: ${BINARY_SIZE_DATA_FILE}"
exit 1
fi
/usr/bin/python3 -m pip install -r $(Build.SourcesDirectory)/tools/ci_build/github/windows/post_to_dashboard/requirements.txt && \
/usr/bin/python3 -m pip install --user -r $(Build.SourcesDirectory)/tools/ci_build/github/windows/post_to_dashboard/requirements.txt && \
/usr/bin/python3 $(Build.SourcesDirectory)/tools/ci_build/github/windows/post_binary_sizes_to_dashboard.py \
--commit_hash=$(Build.SourceVersion) \
--size_data_file="${BINARY_SIZE_DATA_FILE}" \
Expand Down

0 comments on commit 287ecea

Please sign in to comment.