"docs/vscode:/vscode.git/clone" did not exist on "65238ce065261bb874fb819bb0a2f8a72f02e41c"
Unverified Commit 04733c05 authored by Vasilis Vryniotis's avatar Vasilis Vryniotis Committed by GitHub
Browse files

Fixing clang-format version to what PyTorch uses. (#981)

parent ba1698ba
......@@ -59,9 +59,6 @@ install_release() {
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
pip install clang-format
fi
}
build_master() {
......
......@@ -20,9 +20,9 @@ if [ "${status}" -ne 0 ]; then
fi
printf "\x1b[34mRunning clang-format: "
clang-format --version
./clang-format --version
printf "\x1b[0m\n"
git-clang-format origin/master
git-clang-format --binary ./clang-format origin/master
git diff --exit-code
status=$?
exit_status="$((exit_status+status))"
......
......@@ -38,7 +38,9 @@ conda activate "${env_dir}"
printf "* Installing dependencies (except PyTorch)\n"
conda env update --file "${this_dir}/environment.yml" --prune
if [ "${os}" == Linux ] ; then
pip install clang-format
clangformat_path="${root_dir}/clang-format"
curl https://oss-clang-format.s3.us-east-2.amazonaws.com/linux64/clang-format-linux64 -o "${clangformat_path}"
chmod +x "${clangformat_path}"
fi
# 4. Buld codecs
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment