Skip to content

Commit

Permalink
fix distro in manylinux
Browse files Browse the repository at this point in the history
  • Loading branch information
tianshuo78520a committed May 7, 2021
1 parent 8ce6b39 commit 32a3251
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions paddle/scripts/paddle_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,12 @@ function cmake_base() {
distibuted_flag=${WITH_DISTRIBUTE:-OFF}
gloo_flag=${distibuted_flag}

if [ "$CMD" != "assert_file_approvals" ];then
python -m pip install distro
python ${PADDLE_ROOT}/tools/summary_env.py
bash ${PADDLE_ROOT}/tools/get_cpu_info.sh
fi

cat <<EOF
========================================
Configuring cmake in /paddle/build ...
Expand Down Expand Up @@ -1902,11 +1908,6 @@ function main() {
local CMD=$1
local parallel_number=$2
init
if [ "$CMD" != "assert_file_approvals" ];then
python -m pip install distro
python ${PADDLE_ROOT}/tools/summary_env.py
bash ${PADDLE_ROOT}/tools/get_cpu_info.sh
fi
case $CMD in
build_only)
cmake_gen_and_build ${PYTHON_ABI:-""} ${parallel_number}
Expand Down

1 comment on commit 32a3251

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.