[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" |
---|
[a78bc87] | 6 | set GIT_SED=C:\"Program Files (x86)"\Git\bin\sed.exe |
---|
[1a4f4df] | 7 | |
---|
[c6ea8e9] | 8 | |
---|
[9f441a9] | 9 | set PYTHONPATH=%PYTHONPATH%;%WORKSPACE%\sasview\utils |
---|
| 10 | set PYTHONPATH=%PYTHONPATH%;%WORKSPACE%\sasview\sasview-install |
---|
[c6ea8e9] | 11 | |
---|
[9f441a9] | 12 | echo %PYTHONPATH% |
---|
| 13 | echo %WORKSPACE% |
---|
[c6ea8e9] | 14 | |
---|
| 15 | |
---|
[1a4f4df] | 16 | :: SET SASVIEW GITHASH ################################################ |
---|
| 17 | cd %WORKSPACE% |
---|
| 18 | cd sasview\sasview |
---|
| 19 | git rev-parse HEAD > tmpFile_githash |
---|
| 20 | SET /p githash= < tmpFile_githash |
---|
| 21 | DEL tmpFile_githash |
---|
| 22 | %GIT_SED% -i.bak "s/GIT_COMMIT/%githash%/g" __init__.py |
---|
| 23 | |
---|
| 24 | |
---|
| 25 | |
---|
[9f441a9] | 26 | :: MAKE DIR FOR EGGS ################################################## |
---|
| 27 | cd %WORKSPACE% |
---|
| 28 | cd sasview |
---|
| 29 | MD sasview-install |
---|
| 30 | MD utils |
---|
[c6ea8e9] | 31 | |
---|
| 32 | |
---|
[9f441a9] | 33 | :: SASMODELS build #################################################### |
---|
| 34 | cd %WORKSPACE% |
---|
| 35 | cd sasmodels |
---|
| 36 | %PYTHON% setup.py build |
---|
[c6ea8e9] | 37 | |
---|
| 38 | |
---|
| 39 | |
---|
[9f441a9] | 40 | :: SASMODELS doc ###################################################### |
---|
| 41 | cd doc |
---|
| 42 | make html |
---|
[c6ea8e9] | 43 | |
---|
| 44 | |
---|
[9f441a9] | 45 | :: SASMODELS build egg ################################################ |
---|
| 46 | cd %WORKSPACE% |
---|
| 47 | cd sasmodels |
---|
| 48 | %PYTHON% setup.py bdist_egg |
---|
[c6ea8e9] | 49 | |
---|
| 50 | |
---|
[9f441a9] | 51 | :: SASMODELS install egg ############################################## |
---|
| 52 | cd %WORKSPACE% |
---|
| 53 | cd sasmodels |
---|
[c6ea8e9] | 54 | cd dist |
---|
[9f441a9] | 55 | echo F | xcopy sasmodels-*.egg sasmodels.egg /Y |
---|
| 56 | %EASY_INSTALL% -d %WORKSPACE%\sasview\utils sasmodels.egg |
---|
[c6ea8e9] | 57 | |
---|
| 58 | |
---|
[9f441a9] | 59 | :: NOW BUILD SASVIEW |
---|
[c6ea8e9] | 60 | |
---|
[9f441a9] | 61 | :: SASVIEW build egg ################################################ |
---|
| 62 | :: Remember to modify C:\Python27\Lib\distutils\distutils.cfg to you compiler |
---|
| 63 | cd %WORKSPACE% |
---|
| 64 | cd sasview |
---|
| 65 | %PYTHON% setup.py build docs bdist_egg |
---|
[c6ea8e9] | 66 | |
---|
[9f441a9] | 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 | |
---|
[b4994b7] | 81 | :: TINYCC build #################################################### |
---|
| 82 | cd %WORKSPACE% |
---|
| 83 | cd tinycc |
---|
| 84 | %PYTHON% setup.py build |
---|
| 85 | xcopy /S build\lib\* %WORKSPACE%\sasview\utils\ |
---|
| 86 | |
---|
[9f441a9] | 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 |
---|
[c6ea8e9] | 94 | cd Output |
---|
[dbb2e9d] | 95 | xcopy setupSasView.exe %WORKSPACE%\sasview\dist |
---|
[c6ea8e9] | 96 | |
---|
[9f441a9] | 97 | :: SASVIEW PYLINT ##################################################### |
---|
[dbb2e9d] | 98 | cd %WORKSPACE%\sasview |
---|
[9f441a9] | 99 | %PYLINT% --rcfile "build_tools/pylint.rc" -f parseable sasview-install/sasview.egg/sas sasview > test/sasview.txt |
---|
[f0d4fcc] | 100 | |
---|
[c6ea8e9] | 101 | |
---|
[9f441a9] | 102 | :: GO BACK ############################################################ |
---|
| 103 | cd %WORKSPACE% |
---|