Skip to content

Commit 5c90f95

Browse files
committed
Add build batch for Windows
1 parent c9b6e5b commit 5c90f95

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

build_windows.bat

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
set MSSdk=1
2+
set DISTUTILS_USE_SDK=1
3+
4+
rem Python27 x86
5+
rem call "C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\SetEnv.cmd" /Release /x86 /xp
6+
call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat"
7+
c:\Python27\python setup.py build_ext -f build install
8+
pause
9+
10+
rem Python27 amd64
11+
rem call "C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\SetEnv.cmd" /Release /x64 /xp
12+
call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars64.bat"
13+
c:\Python27_amd64\python setup.py build_ext -f build install
14+
pause
15+
16+
rem Python33 x86
17+
call "C:\Program Files\Microsoft SDKs\Windows\v7.1\bin\SetEnv.cmd" /Release /x86 /xp
18+
c:\Python33\python setup.py build_ext -f build install
19+
pause
20+
21+
rem Python33 amd64
22+
call "C:\Program Files\Microsoft SDKs\Windows\v7.1\bin\SetEnv.cmd" /Release /x64 /xp
23+
c:\Python33_amd64\python setup.py build_ext -f build install
24+
pause

upload_windows.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
c:\Python27\python setup.py bdist_egg bdist_wininst upload
2+
c:\Python33\python setup.py bdist_egg bdist_wininst upload
3+
c:\Python27_amd64\python setup.py bdist_egg bdist_wininst upload
4+
c:\Python33_amd64\python setup.py bdist_egg bdist_wininst upload

0 commit comments

Comments
 (0)