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