[9f441a9] | 1 | set PYTHON=c:\python27\python |
---|
[c6ea8e9] | 2 | set EASY_INSTALL=c:\python27\scripts\easy_install.exe |
---|
[9f441a9] | 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" |
---|
[c6ea8e9] | 6 | |
---|
[9f441a9] | 7 | set PYTHONPATH=%PYTHONPATH%;%WORKSPACE%\sasview\utils |
---|
| 8 | set PYTHONPATH=%PYTHONPATH%;%WORKSPACE%\sasview\sasview-install |
---|
[c6ea8e9] | 9 | |
---|
[9f441a9] | 10 | echo %PYTHONPATH% |
---|
| 11 | echo %WORKSPACE% |
---|
[c6ea8e9] | 12 | |
---|
| 13 | |
---|
[9f441a9] | 14 | :: MAKE DIR FOR EGGS ################################################## |
---|
| 15 | cd %WORKSPACE% |
---|
| 16 | cd sasview |
---|
| 17 | MD sasview-install |
---|
| 18 | MD utils |
---|
[c6ea8e9] | 19 | |
---|
| 20 | |
---|
[9f441a9] | 21 | :: SASMODELS build #################################################### |
---|
| 22 | cd %WORKSPACE% |
---|
| 23 | cd sasmodels |
---|
| 24 | %PYTHON% setup.py build |
---|
[c6ea8e9] | 25 | |
---|
| 26 | |
---|
| 27 | |
---|
[9f441a9] | 28 | :: SASMODELS doc ###################################################### |
---|
| 29 | cd doc |
---|
| 30 | make html |
---|
[c6ea8e9] | 31 | |
---|
| 32 | |
---|
[9f441a9] | 33 | :: SASMODELS build egg ################################################ |
---|
| 34 | cd %WORKSPACE% |
---|
| 35 | cd sasmodels |
---|
| 36 | %PYTHON% setup.py bdist_egg |
---|
[c6ea8e9] | 37 | |
---|
| 38 | |
---|
[9f441a9] | 39 | :: SASMODELS install egg ############################################## |
---|
| 40 | cd %WORKSPACE% |
---|
| 41 | cd sasmodels |
---|
[c6ea8e9] | 42 | cd dist |
---|
[9f441a9] | 43 | echo F | xcopy sasmodels-*.egg sasmodels.egg /Y |
---|
| 44 | %EASY_INSTALL% -d %WORKSPACE%\sasview\utils sasmodels.egg |
---|
[c6ea8e9] | 45 | |
---|
| 46 | |
---|
[9f441a9] | 47 | :: NOW BUILD SASVIEW |
---|
[c6ea8e9] | 48 | |
---|
[9f441a9] | 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 |
---|
[c6ea8e9] | 54 | |
---|
[9f441a9] | 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 | |
---|
[b4994b7] | 69 | :: TINYCC build #################################################### |
---|
| 70 | cd %WORKSPACE% |
---|
| 71 | cd tinycc |
---|
| 72 | %PYTHON% setup.py build |
---|
| 73 | xcopy /S build\lib\* %WORKSPACE%\sasview\utils\ |
---|
| 74 | |
---|
[9f441a9] | 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 |
---|
[c6ea8e9] | 82 | cd Output |
---|
[dbb2e9d] | 83 | xcopy setupSasView.exe %WORKSPACE%\sasview\dist |
---|
[c6ea8e9] | 84 | |
---|
[9f441a9] | 85 | :: SASVIEW PYLINT ##################################################### |
---|
[dbb2e9d] | 86 | cd %WORKSPACE%\sasview |
---|
[9f441a9] | 87 | %PYLINT% --rcfile "build_tools/pylint.rc" -f parseable sasview-install/sasview.egg/sas sasview > test/sasview.txt |
---|
[f0d4fcc] | 88 | |
---|
[c6ea8e9] | 89 | |
---|
[9f441a9] | 90 | :: GO BACK ############################################################ |
---|
| 91 | cd %WORKSPACE% |
---|