-
Notifications
You must be signed in to change notification settings - Fork 741
Fixing clang-format version to what PyTorch uses. #981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
datumbox
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments to clarify changes, please have a look.
| install_build_dependencies() { | ||
| printf "* Installing torchaudio dependencies except PyTorch - (Python: %s)\n" "$1" | ||
| conda env update -q --file "${_this_dir}/environment.yml" --prune | ||
| if [ "${_os}" == Linux ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe clang-format is not actually used in the specific tests, so I removed it.
| conda env update --file "${this_dir}/environment.yml" --prune | ||
| if [ "${os}" == Linux ] ; then | ||
| pip install clang-format | ||
| clangformat_path="${root_dir}/clang-format" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I understand other libraries like conda are put directly in root. So I do the same with clang-format.
|
|
||
| printf "\x1b[34mRunning clang-format: " | ||
| clang-format --version | ||
| ./clang-format --version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our root_dir is ./ here. Similar to what we do above with conda.
mthrok
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks!
|
The failed test are unrelated so we agreed with @mthrok to merge. Thanks for the quick review! |
In Vision-2372 we fixed the clang-format version. @mthrok proposed to do the same in audio.