diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2015-06-10 04:16:52 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2015-06-10 04:16:52 (GMT) |
commit | 6250df81bfbe567bb12c6dc29af149c62f35afa6 (patch) | |
tree | 825a96cca40201a4fb5df1e67acc86b1b5c63fd0 /Tools/buildbot/clean.bat | |
parent | 17d5f474238fc753bf4d28d458784a0e2e6d3cd9 (diff) | |
download | cpython-6250df81bfbe567bb12c6dc29af149c62f35afa6.zip cpython-6250df81bfbe567bb12c6dc29af149c62f35afa6.tar.gz cpython-6250df81bfbe567bb12c6dc29af149c62f35afa6.tar.bz2 |
Clean up/refactor the batch scripts used for building on Windows.
This is mostly a backport of issue #21907, but also includes a few
extras necessary to make the bulidbot scripts as thin as possible.
Diffstat (limited to 'Tools/buildbot/clean.bat')
-rw-r--r-- | Tools/buildbot/clean.bat | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/Tools/buildbot/clean.bat b/Tools/buildbot/clean.bat index c69bf56..0fc68fd 100644 --- a/Tools/buildbot/clean.bat +++ b/Tools/buildbot/clean.bat @@ -1,8 +1,16 @@ -@rem Used by the buildbot "clean" step.
-call "%VS100COMNTOOLS%vsvars32.bat"
-@echo Deleting test leftovers ...
-rmdir /s /q build
-cd PCbuild
-msbuild /target:clean pcbuild.sln /p:Configuration=Release /p:PlatformTarget=x86
-msbuild /target:clean pcbuild.sln /p:Configuration=Debug /p:PlatformTarget=x86
-cd ..
+@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"
|