Skip to content

Commit 5de360e

Browse files
paulmonwebsurfer5
authored andcommitted
bpo-36511: clean up python process before deploy on ARM Windows buildbots (pythonGH-14431)
1 parent a7b0522 commit 5de360e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Tools/buildbot/remoteDeploy.bat

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,18 @@ if NOT "%REMOTE_PYTHON_DIR:~-1,1%"=="\" (set REMOTE_PYTHON_DIR=%REMOTE_PYTHON_DI
2424
echo PYTHON_SOURCE = %PYTHON_SOURCE%
2525
echo REMOTE_PYTHON_DIR = %REMOTE_PYTHON_DIR%
2626

27+
REM stop Python processes and remove existing files if found
28+
ssh %SSH_SERVER% "kill python.exe"
29+
ssh %SSH_SERVER% "kill python_d.exe"
2730
ssh %SSH_SERVER% "if EXIST %REMOTE_PYTHON_DIR% (rd %REMOTE_PYTHON_DIR% /s/q)"
31+
32+
REM Create Python directories
2833
ssh %SSH_SERVER% "md %REMOTE_PYTHON_DIR%PCBuild\arm32"
2934
ssh %SSH_SERVER% "md %REMOTE_PYTHON_DIR%temp"
3035
ssh %SSH_SERVER% "md %REMOTE_PYTHON_DIR%Modules"
3136
ssh %SSH_SERVER% "md %REMOTE_PYTHON_DIR%PC"
37+
38+
REM Copy Python files
3239
for /f "USEBACKQ" %%i in (`dir PCbuild\*.bat /b`) do @scp PCBuild\%%i "%SSH_SERVER%:%REMOTE_PYTHON_DIR%PCBuild"
3340
for /f "USEBACKQ" %%i in (`dir PCbuild\*.py /b`) do @scp PCBuild\%%i "%SSH_SERVER%:%REMOTE_PYTHON_DIR%PCBuild"
3441
for /f "USEBACKQ" %%i in (`dir PCbuild\arm32\*.exe /b`) do @scp PCBuild\arm32\%%i "%SSH_SERVER%:%REMOTE_PYTHON_DIR%PCBuild\arm32"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy