[4141155] | 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 | |
---|
[c313c88] | 29 | :: TINYCC build #################################################### |
---|
| 30 | cd %WORKSPACE% |
---|
| 31 | cd tinycc |
---|
| 32 | %PYTHON% setup.py build |
---|
| 33 | xcopy /S build\lib\* %WORKSPACE%\sasview\utils\ |
---|
| 34 | |
---|
[4141155] | 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 | |
---|
| 50 | :: SASMODELS install egg ############################################## |
---|
| 51 | cd %WORKSPACE% |
---|
| 52 | cd sasmodels |
---|
| 53 | cd dist |
---|
| 54 | echo F | xcopy sasmodels-*.egg sasmodels.egg /Y |
---|
| 55 | %EASY_INSTALL% -d %WORKSPACE%\sasview\utils sasmodels.egg |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | :: NOW BUILD SASVIEW |
---|
| 59 | |
---|
| 60 | :: SASVIEW build egg ################################################ |
---|
| 61 | cd %WORKSPACE% |
---|
| 62 | cd sasview |
---|
| 63 | %PYTHON% setup.py build docs bdist_egg |
---|
| 64 | |
---|
| 65 | |
---|
| 66 | :: SASVIEW utest ###################################################### |
---|
| 67 | cd %WORKSPACE%\sasview\test |
---|
| 68 | %PYTHON% utest_sasview.py |
---|
| 69 | |
---|
| 70 | |
---|
| 71 | :: SASVIEW INSTALL EGG ################################################ |
---|
| 72 | cd %WORKSPACE% |
---|
| 73 | cd sasview |
---|
| 74 | cd dist |
---|
| 75 | echo F | xcopy sasview-*.egg sasview.egg /Y |
---|
| 76 | %EASY_INSTALL% -d %WORKSPACE%\sasview\sasview-install sasview.egg |
---|
| 77 | |
---|
| 78 | |
---|
| 79 | :: SASVIEW INSTALLER ################################################## |
---|
| 80 | cd %WORKSPACE% |
---|
| 81 | cd sasview |
---|
| 82 | cd sasview |
---|
| 83 | %PYTHON% setup_exe.py py2exe |
---|
| 84 | %PYTHON% installer_generator.py |
---|
| 85 | %INNO% installer.iss |
---|
| 86 | cd Output |
---|
| 87 | xcopy setupSasView.exe %WORKSPACE%\sasview\dist |
---|
| 88 | |
---|
| 89 | :: SASVIEW PYLINT ##################################################### |
---|
| 90 | cd %WORKSPACE%\sasview |
---|
| 91 | %PYLINT% --rcfile "build_tools/pylint.rc" -f parseable sasview-install/sasview.egg/sas sasview > test/sasview.txt |
---|
| 92 | |
---|
| 93 | |
---|
| 94 | :: GO BACK ############################################################ |
---|
| 95 | cd %WORKSPACE% |
---|