Skip to content

Commit

Permalink
Fix paddle build install requirements (PaddlePaddle#27378)
Browse files Browse the repository at this point in the history
* Fix install pr requirements.txt

* test=document_fix
  • Loading branch information
tianshuo78520a authored Sep 17, 2020
1 parent bcb4a58 commit da583ed
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion paddle/scripts/paddle_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ function generate_upstream_develop_api_spec() {
git checkout -b develop_base_pr upstream/$BRANCH
cmake_gen $1
build $2
cp ${PADDLE_ROOT}/python/requirements.txt /tmp

git checkout $cur_branch
generate_api_spec "$1" "DEV"
Expand All @@ -641,7 +642,12 @@ function generate_api_spec() {
cd ${PADDLE_ROOT}/build/.check_api_workspace
virtualenv .${spec_kind}_env
source .${spec_kind}_env/bin/activate
pip install -r ${PADDLE_ROOT}/python/requirements.txt

if [ "$spec_kind" == "DEV" ]; then
pip install -r /tmp/requirements.txt
else
pip install -r ${PADDLE_ROOT}/python/requirements.txt
fi
pip --no-cache-dir install ${PADDLE_ROOT}/build/python/dist/*whl
spec_path=${PADDLE_ROOT}/paddle/fluid/API_${spec_kind}.spec
python ${PADDLE_ROOT}/tools/print_signatures.py paddle > $spec_path
Expand Down

0 comments on commit da583ed

Please sign in to comment.