diff options
author | Paul Monson <paulmon@users.noreply.github.com> | 2019-09-09 21:11:17 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2019-09-09 21:11:17 (GMT) |
commit | 55d12ce8b8d397dd4e376bb0d1c27b3cced0ef50 (patch) | |
tree | 40e3b3d7712beafaf8668393c9b770bab7243db3 /Tools | |
parent | 755d4ef8243050e5ff973524633caebd0ce03af9 (diff) | |
download | cpython-55d12ce8b8d397dd4e376bb0d1c27b3cced0ef50.zip cpython-55d12ce8b8d397dd4e376bb0d1c27b3cced0ef50.tar.gz cpython-55d12ce8b8d397dd4e376bb0d1c27b3cced0ef50.tar.bz2 |
bpo-36511: clean up python process before deploy on ARM Windows buildbots (GH-14431)
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/buildbot/remoteDeploy.bat | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tools/buildbot/remoteDeploy.bat b/Tools/buildbot/remoteDeploy.bat index 6b86e1e..31f1519 100644 --- a/Tools/buildbot/remoteDeploy.bat +++ b/Tools/buildbot/remoteDeploy.bat @@ -24,11 +24,18 @@ if NOT "%REMOTE_PYTHON_DIR:~-1,1%"=="\" (set REMOTE_PYTHON_DIR=%REMOTE_PYTHON_DI echo PYTHON_SOURCE = %PYTHON_SOURCE% echo REMOTE_PYTHON_DIR = %REMOTE_PYTHON_DIR% +REM stop Python processes and remove existing files if found +ssh %SSH_SERVER% "kill python.exe" +ssh %SSH_SERVER% "kill python_d.exe" ssh %SSH_SERVER% "if EXIST %REMOTE_PYTHON_DIR% (rd %REMOTE_PYTHON_DIR% /s/q)" + +REM Create Python directories ssh %SSH_SERVER% "md %REMOTE_PYTHON_DIR%PCBuild\arm32" ssh %SSH_SERVER% "md %REMOTE_PYTHON_DIR%temp" ssh %SSH_SERVER% "md %REMOTE_PYTHON_DIR%Modules" ssh %SSH_SERVER% "md %REMOTE_PYTHON_DIR%PC" + +REM Copy Python files for /f "USEBACKQ" %%i in (`dir PCbuild\*.bat /b`) do @scp PCBuild\%%i "%SSH_SERVER%:%REMOTE_PYTHON_DIR%PCBuild" for /f "USEBACKQ" %%i in (`dir PCbuild\*.py /b`) do @scp PCBuild\%%i "%SSH_SERVER%:%REMOTE_PYTHON_DIR%PCBuild" for /f "USEBACKQ" %%i in (`dir PCbuild\arm32\*.exe /b`) do @scp PCBuild\arm32\%%i "%SSH_SERVER%:%REMOTE_PYTHON_DIR%PCBuild\arm32" |