Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zhwesky2010 authored Dec 7, 2022
1 parent 317f1f9 commit a9f17b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion paddle/scripts/paddle_build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ set PYTHON_VENV_ROOT=%cache_dir%\python_venv
set PYTHON_EXECUTABLE=!PYTHON_VENV_ROOT!\Scripts\python.exe
%PYTHON_ROOT%\python.exe -m venv --clear !PYTHON_VENV_ROOT!
call !PYTHON_VENV_ROOT!\Scripts\activate.bat
if %ERRORLEVEL% NEQ 0 (
echo activate python virtual environment failed!
exit /b 5
)

if "%WITH_PYTHON%" == "ON" (
where python
Expand Down Expand Up @@ -640,7 +644,6 @@ pip uninstall -y paddlepaddle
pip uninstall -y paddlepaddle-gpu
pip install %PADDLE_WHL_FILE_WIN%
if %ERRORLEVEL% NEQ 0 (
call paddle_winci\Scripts\deactivate.bat 2>NUL
echo pip install whl package failed!
exit /b 1
)
Expand Down
3 changes: 1 addition & 2 deletions paddle/scripts/paddle_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1008,9 +1008,8 @@ function generate_upstream_develop_api_spec() {
cmake_change=`git diff --name-only upstream/$BRANCH | grep "cmake/external" || true`

cd ${PADDLE_ROOT}
git fetch upstream $BRANCH
git checkout -b develop_base_pr -t upstream/$BRANCH
echo "upstream develop git log: "
echo "develop git log: "
git log --pretty=oneline -10

dev_commit=`git log -1|head -1|awk '{print $2}'`
Expand Down

0 comments on commit a9f17b9

Please sign in to comment.