1 | set PYTHON=python.exe |
---|
2 | set EASY_INSTALL=easy_install.exe |
---|
3 | set PYLINT= pylint.exe |
---|
4 | set INNO="C:\util\inno\ISCC.exe" |
---|
5 | set GIT_SED=C:\"Program Files"\Git\bin\sed.exe |
---|
6 | set SAS_COMPILER=tinycc |
---|
7 | |
---|
8 | set PYTHONPATH=%WORKSPACE%\sasview\utils |
---|
9 | set PYTHONPATH=%PYTHONPATH%;%WORKSPACE%\sasview\sasview-install |
---|
10 | |
---|
11 | echo %PYTHONPATH% |
---|
12 | echo %WORKSPACE% |
---|
13 | |
---|
14 | |
---|
15 | :: SET SASVIEW GITHASH ################################################ |
---|
16 | cd %WORKSPACE% |
---|
17 | cd sasview\sasview |
---|
18 | git rev-parse HEAD > tmpFile_githash |
---|
19 | SET /p githash= < tmpFile_githash |
---|
20 | DEL tmpFile_githash |
---|
21 | %GIT_SED% -i.bak "s/GIT_COMMIT/%githash%/g" __init__.py |
---|
22 | |
---|
23 | :: MAKE DIR FOR EGGS ################################################## |
---|
24 | cd %WORKSPACE% |
---|
25 | cd sasview |
---|
26 | MD sasview-install |
---|
27 | MD utils |
---|
28 | |
---|
29 | :: TINYCC build #################################################### |
---|
30 | cd %WORKSPACE% |
---|
31 | cd tinycc |
---|
32 | %PYTHON% setup.py build |
---|
33 | xcopy /S build\lib\* %WORKSPACE%\sasview\utils\ |
---|
34 | |
---|
35 | |
---|
36 | :: SASMODELS build #################################################### |
---|
37 | cd %WORKSPACE% |
---|
38 | cd sasmodels |
---|
39 | %PYTHON% setup.py build |
---|
40 | |
---|
41 | :: SASMODELS doc ###################################################### |
---|
42 | cd doc |
---|
43 | make html |
---|
44 | |
---|
45 | :: SASMODELS build egg ################################################ |
---|
46 | cd %WORKSPACE% |
---|
47 | cd sasmodels |
---|
48 | %PYTHON% setup.py bdist_egg |
---|
49 | %PYTHON% -m sasmodels.model_test all |
---|
50 | |
---|
51 | :: SASMODELS install egg ############################################## |
---|
52 | cd %WORKSPACE% |
---|
53 | cd sasmodels |
---|
54 | cd dist |
---|
55 | echo F | xcopy sasmodels-*.egg sasmodels.egg /Y |
---|
56 | %EASY_INSTALL% -d %WORKSPACE%\sasview\utils sasmodels.egg |
---|
57 | |
---|
58 | |
---|
59 | :: NOW BUILD SASVIEW |
---|
60 | |
---|
61 | :: SASVIEW build egg ################################################ |
---|
62 | cd %WORKSPACE% |
---|
63 | cd sasview |
---|
64 | %PYTHON% setup.py build docs bdist_egg |
---|
65 | |
---|
66 | |
---|
67 | :: SASVIEW utest ###################################################### |
---|
68 | cd %WORKSPACE%\sasview\test |
---|
69 | %PYTHON% utest_sasview.py |
---|
70 | |
---|
71 | |
---|
72 | :: SASVIEW INSTALL EGG ################################################ |
---|
73 | cd %WORKSPACE% |
---|
74 | cd sasview |
---|
75 | cd dist |
---|
76 | echo F | xcopy sasview-*.egg sasview.egg /Y |
---|
77 | %EASY_INSTALL% -d %WORKSPACE%\sasview\sasview-install sasview.egg |
---|
78 | |
---|
79 | |
---|
80 | :: SASVIEW INSTALLER ################################################## |
---|
81 | cd %WORKSPACE% |
---|
82 | cd sasview |
---|
83 | cd sasview |
---|
84 | %PYTHON% setup_exe.py py2exe |
---|
85 | %PYTHON% installer_generator.py |
---|
86 | %INNO% installer.iss |
---|
87 | cd Output |
---|
88 | xcopy setupSasView.exe %WORKSPACE%\sasview\dist |
---|
89 | |
---|
90 | :: SASVIEW PYLINT ##################################################### |
---|
91 | cd %WORKSPACE%\sasview |
---|
92 | %PYLINT% --rcfile "build_tools/pylint.rc" -f parseable sasview-install/sasview.egg/sas sasview > test/sasview.txt |
---|
93 | |
---|
94 | |
---|
95 | :: GO BACK ############################################################ |
---|
96 | cd %WORKSPACE% |
---|