1 | set PYTHON=c:\python27\python |
---|
2 | set EASY_INSTALL=c:\python27\scripts\easy_install.exe |
---|
3 | set PATH=c:\python27;c:\mingw\bin;%PATH% |
---|
4 | set PYLINT= C:\Python27\Scripts\pylint |
---|
5 | set INNO="C:\Program Files (x86)\Inno Setup 5\ISCC.exe" |
---|
6 | |
---|
7 | set PYTHONPATH=%PYTHONPATH%;%WORKSPACE%\sasview\utils |
---|
8 | set PYTHONPATH=%PYTHONPATH%;%WORKSPACE%\sasview\sasview-install |
---|
9 | |
---|
10 | echo %PYTHONPATH% |
---|
11 | echo %WORKSPACE% |
---|
12 | |
---|
13 | |
---|
14 | :: MAKE DIR FOR EGGS ################################################## |
---|
15 | cd %WORKSPACE% |
---|
16 | cd sasview |
---|
17 | MD sasview-install |
---|
18 | MD utils |
---|
19 | |
---|
20 | |
---|
21 | :: SASMODELS build #################################################### |
---|
22 | cd %WORKSPACE% |
---|
23 | cd sasmodels |
---|
24 | %PYTHON% setup.py build |
---|
25 | |
---|
26 | |
---|
27 | |
---|
28 | :: SASMODELS doc ###################################################### |
---|
29 | cd doc |
---|
30 | make html |
---|
31 | |
---|
32 | |
---|
33 | :: SASMODELS build egg ################################################ |
---|
34 | cd %WORKSPACE% |
---|
35 | cd sasmodels |
---|
36 | %PYTHON% setup.py bdist_egg |
---|
37 | |
---|
38 | |
---|
39 | :: SASMODELS install egg ############################################## |
---|
40 | cd %WORKSPACE% |
---|
41 | cd sasmodels |
---|
42 | cd dist |
---|
43 | echo F | xcopy sasmodels-*.egg sasmodels.egg /Y |
---|
44 | %EASY_INSTALL% -d %WORKSPACE%\sasview\utils sasmodels.egg |
---|
45 | |
---|
46 | |
---|
47 | :: NOW BUILD SASVIEW |
---|
48 | |
---|
49 | :: SASVIEW build egg ################################################ |
---|
50 | :: Remember to modify C:\Python27\Lib\distutils\distutils.cfg to you compiler |
---|
51 | cd %WORKSPACE% |
---|
52 | cd sasview |
---|
53 | %PYTHON% setup.py build docs bdist_egg |
---|
54 | |
---|
55 | |
---|
56 | :: SASVIEW utest ###################################################### |
---|
57 | cd %WORKSPACE%\sasview\test |
---|
58 | %PYTHON% utest_sasview.py |
---|
59 | |
---|
60 | |
---|
61 | :: SASVIEW INSTALL EGG ################################################ |
---|
62 | cd %WORKSPACE% |
---|
63 | cd sasview |
---|
64 | cd dist |
---|
65 | echo F | xcopy sasview-*.egg sasview.egg /Y |
---|
66 | %EASY_INSTALL% -d %WORKSPACE%\sasview\sasview-install sasview.egg |
---|
67 | |
---|
68 | |
---|
69 | :: TINYCC build #################################################### |
---|
70 | cd %WORKSPACE% |
---|
71 | cd tinycc |
---|
72 | %PYTHON% setup.py build |
---|
73 | xcopy /S build\lib\* %WORKSPACE%\sasview\utils\ |
---|
74 | |
---|
75 | :: SASVIEW INSTALLER ################################################## |
---|
76 | cd %WORKSPACE% |
---|
77 | cd sasview |
---|
78 | cd sasview |
---|
79 | %PYTHON% setup_exe.py py2exe |
---|
80 | %PYTHON% installer_generator.py |
---|
81 | %INNO% installer.iss |
---|
82 | cd Output |
---|
83 | xcopy setupSasView.exe %WORKSPACE%\sasview\dist |
---|
84 | |
---|
85 | :: SASVIEW PYLINT ##################################################### |
---|
86 | cd %WORKSPACE%\sasview |
---|
87 | %PYLINT% --rcfile "build_tools/pylint.rc" -f parseable sasview-install/sasview.egg/sas sasview > test/sasview.txt |
---|
88 | |
---|
89 | |
---|
90 | :: GO BACK ############################################################ |
---|
91 | cd %WORKSPACE% |
---|