未验证 提交 37534168 编写于 作者: T tianshuo78520a 提交者: GitHub

fix distro in manylinux (#32784)

上级 8ce6b393
......@@ -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 ...
......@@ -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}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册