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