1
1
@ if " %1 " == " quick" goto quick
2
2
@ if " %1 " == " already_built" goto already_built
3
- if exist build\. rm -rf build
3
+ if exist build\. rd /s/q build
4
4
if exist build\. goto couldnt_rm
5
5
:quick
6
6
call build_all.bat
@@ -13,16 +13,16 @@ cd ..
13
13
rem Now the binaries.
14
14
15
15
rem Yuck - 2to3 hackery - must nuke bdist dirs as it may hold py3x syntax.
16
- if exist build/bdist.win32/. rm -rf build/ bdist.win32
17
- if exist build/bdist.win-amd64/. rm -rf build/ bdist.win-amd64
16
+ if exist build/bdist.win32/. rd /s/q build\ bdist.win32
17
+ if exist build/bdist.win-amd64/. rd /s/q build\ bdist.win-amd64
18
18
py -2.7-32 setup.py -q bdist_wininst --target-version=2.7 --skip-build
19
19
py -2.7-32 setup.py -q bdist_wheel --skip-build
20
20
py -2.7 setup.py -q bdist_wininst --target-version=2.7 --skip-build
21
21
py -2.7 setup.py -q bdist_wheel --skip-build
22
22
23
23
rem Just incase - re-nuke bdist dirs so 2to3 always runs.
24
- if exist build/bdist.win32/. rm -rf build/ bdist.win32
25
- if exist build/bdist.win-amd64/. rm -rf build/ bdist.win-amd64
24
+ if exist build/bdist.win32/. rd /s/q build\ bdist.win32
25
+ if exist build/bdist.win-amd64/. rd /s/q build\ bdist.win-amd64
26
26
27
27
rem *sob* - for some reason 3.5 and later are failing to remove the bdist temp dir
28
28
rem due to the mfc DLLs - but the dir can be removed manually.
@@ -66,8 +66,8 @@ py -3.9 setup.py -q bdist_wininst --skip-build --target-version=3.9
66
66
py -3.9 setup.py -q bdist_wheel --skip-build
67
67
68
68
rem And nuke the dirs one more time :)
69
- if exist build/bdist.win32/. rm -rf build/ bdist.win32
70
- if exist build/bdist.win-amd64/. rm -rf build/ bdist.win-amd64
69
+ if exist build/bdist.win32/. rd /s/q build\ bdist.win32
70
+ if exist build/bdist.win-amd64/. rd /s/q build\ bdist.win-amd64
71
71
72
72
@ goto xit
73
73
:couldnt_rm
0 commit comments