Fix binary size check build publish step. (#20298)

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.
This commit is contained in:
Edward Chen 2024-04-15 10:15:42 -07:00 committed by GitHub
parent 6e4516cef9
commit 287ecea2f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}" \