-
Notifications
You must be signed in to change notification settings - Fork 2
/
build_bdists.bat
38 lines (32 loc) · 1.6 KB
/
build_bdists.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
set STATSMODELSDIR=C:\Users\skipper\statsmodels\statsmodels
set BUILDDIR=C:\Users\skipper\statsmodels\build_scripts
set BRANCH=master
psftp.exe -i C:\Users\skipper\ssh\sourceforge.ppk jseabold,[email protected] -b %BUILDIR%\list_remote_directory.scr > %BUILDDIR%\remote_file_list.out
rem Change to statsmodels dir update and checkout branch
chdir /d %STATSMODELSDIR%
git pull --ff-only
git checkout %BRANCH%
git clean -xdf
call python %BUILDDIR%
if errorlevel 1 (
rem Build the binaries
call %BUILDDIR%\build_win_bdist64-py26.bat
call %BUILDDIR%\build_win_bdist32-py26.bat
call %BUILDDIR%\build_win_bdist64-py27.bat
call %BUILDDIR%\build_win_bdist32-py27.bat
call %BUILDDIR%\build_win_bdist32-py32.bat
call %BUILDDIR%\build_win_bdist64-py32.bat
call %BUILDDIR%\build_win_bdist32-py33.bat
call %BUILDDIR%\build_win_bdist64-py33.bat
call %BUILDDIR%\build_win_bdist32-py34.bat
call %BUILDDIR%\build_win_bdist64-py34.bat
call python %STATSMODELSDIR%\setup.py sdist --formats=zip,gztar
rem Rename the built files to contain the git revision
call python %BUILDDIR%\rename_binaries.py
rem Remove old files
psftp.exe -i C:\Users\skipper\ssh\sourceforge.ppk jseabold,[email protected] -b %BUILDDIR%\delete_remote_binaries.scr
rem Upload new ones
pscp.exe -i C:\Users\skipper\ssh\sourceforge.ppk %STATSMODELSDIR%\dist\* jseabold,[email protected]:htdocs/binaries/
rem Email that everything went okay
call python %BUILDDIR%\email_update.py
)