source: sasview/build_tools/jenkins_win_build.bat @ ec30905

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.2.2ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since ec30905 was b4994b7, checked in by piotr, 9 years ago

Added tinycc to the windows build

  • Property mode set to 100644
File size: 2.3 KB
Line 
1set PYTHON=c:\python27\python
2set EASY_INSTALL=c:\python27\scripts\easy_install.exe
3set PATH=c:\python27;c:\mingw\bin;%PATH%
4set PYLINT= C:\Python27\Scripts\pylint
5set INNO="C:\Program Files (x86)\Inno Setup 5\ISCC.exe"
6
7set PYTHONPATH=%PYTHONPATH%;%WORKSPACE%\sasview\utils
8set PYTHONPATH=%PYTHONPATH%;%WORKSPACE%\sasview\sasview-install
9
10echo %PYTHONPATH%
11echo %WORKSPACE%
12
13
14:: MAKE DIR FOR EGGS ##################################################
15cd %WORKSPACE%
16cd sasview
17MD sasview-install
18MD utils
19
20
21:: SASMODELS build ####################################################
22cd %WORKSPACE%
23cd sasmodels
24%PYTHON% setup.py build
25
26
27
28:: SASMODELS doc ######################################################
29cd doc
30make html
31
32
33:: SASMODELS build egg ################################################
34cd %WORKSPACE%
35cd sasmodels
36%PYTHON% setup.py bdist_egg
37
38
39:: SASMODELS install egg ##############################################
40cd %WORKSPACE%
41cd sasmodels
42cd dist
43echo 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
51cd %WORKSPACE%
52cd sasview
53%PYTHON% setup.py build docs bdist_egg
54
55
56:: SASVIEW utest ######################################################
57cd %WORKSPACE%\sasview\test
58%PYTHON% utest_sasview.py
59
60
61:: SASVIEW INSTALL EGG ################################################
62cd %WORKSPACE%
63cd sasview
64cd dist
65echo F | xcopy sasview-*.egg sasview.egg /Y
66%EASY_INSTALL% -d %WORKSPACE%\sasview\sasview-install sasview.egg
67
68
69:: TINYCC build ####################################################
70cd %WORKSPACE%
71cd tinycc
72%PYTHON% setup.py build
73xcopy /S build\lib\* %WORKSPACE%\sasview\utils\
74
75:: SASVIEW INSTALLER ##################################################
76cd %WORKSPACE%
77cd sasview
78cd sasview
79%PYTHON% setup_exe.py py2exe
80%PYTHON% installer_generator.py
81%INNO% installer.iss
82cd Output
83xcopy setupSasView.exe %WORKSPACE%\sasview\dist
84
85:: SASVIEW PYLINT #####################################################
86cd %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 ############################################################
91cd %WORKSPACE%
Note: See TracBrowser for help on using the repository browser.