summaryrefslogtreecommitdiffstats
path: root/Tools/buildbot/clean.bat
blob: fe252a916b1c24495aabbea83cd814fb45b47986 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
@echo off
rem Used by the buildbot "clean" step.

setlocal
set root=%~dp0..\..
set pcbuild=%root%\PCbuild

echo Deleting build
call "%pcbuild%\build.bat" -t Clean -k %*
call "%pcbuild%\build.bat" -t Clean -k -d %*

echo Deleting .pyc/.pyo files ...
del /s "%root%\Lib\*.pyc" "%root%\Lib\*.pyo"

echo Deleting test leftovers ...
rmdir /s /q "%root%\build"
del /s "%pcbuild%\python*.zip"