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() { ...@@ -59,9 +59,6 @@ install_release() {
install_build_dependencies() { install_build_dependencies() {
printf "* Installing torchaudio dependencies except PyTorch - (Python: %s)\n" "$1" printf "* Installing torchaudio dependencies except PyTorch - (Python: %s)\n" "$1"
conda env update -q --file "${_this_dir}/environment.yml" --prune conda env update -q --file "${_this_dir}/environment.yml" --prune
if [ "${_os}" == Linux ]; then
pip install clang-format
fi
} }
build_master() { build_master() {
......
...@@ -20,9 +20,9 @@ if [ "${status}" -ne 0 ]; then ...@@ -20,9 +20,9 @@ if [ "${status}" -ne 0 ]; then
fi fi
printf "\x1b[34mRunning clang-format: " printf "\x1b[34mRunning clang-format: "
clang-format --version ./clang-format --version
printf "\x1b[0m\n" printf "\x1b[0m\n"
git-clang-format origin/master git-clang-format --binary ./clang-format origin/master
git diff --exit-code git diff --exit-code
status=$? status=$?
exit_status="$((exit_status+status))" exit_status="$((exit_status+status))"
......
...@@ -38,7 +38,9 @@ conda activate "${env_dir}" ...@@ -38,7 +38,9 @@ conda activate "${env_dir}"
printf "* Installing dependencies (except PyTorch)\n" printf "* Installing dependencies (except PyTorch)\n"
conda env update --file "${this_dir}/environment.yml" --prune conda env update --file "${this_dir}/environment.yml" --prune
if [ "${os}" == Linux ] ; then 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 fi
# 4. Buld codecs # 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