[da046c99] | 1 | :: Find ENV NAME |
---|
| 2 | cd %WORKSPACE% |
---|
| 3 | cd sasview |
---|
| 4 | cd build_tools |
---|
| 5 | findstr "name:" conda_qt5_win.yml > condaenv_name.txt |
---|
| 6 | set /p condaname=<condaenv_name.txt |
---|
| 7 | |
---|
| 8 | :: ACTIVATE ENV |
---|
| 9 | call activate %condaname:~6% |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | :: BUILD SETUP |
---|
| 13 | set PYTHON=python.exe |
---|
| 14 | set EASY_INSTALL=easy_install.exe |
---|
| 15 | set PYLINT= pylint.exe |
---|
| 16 | set PYINSTALLER=pyinstaller.exe |
---|
| 17 | set INNO=C:\"Program Files (x86)"\"Inno Setup 5"\ISCC.exe |
---|
| 18 | set GIT_SED=C:\"Program Files"\Git\bin\sed.exe |
---|
| 19 | set SAS_COMPILER=tinycc |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | :: REMOVE INSTALLATION ################################################ |
---|
| 23 | pip uninstall -y sasview |
---|
| 24 | pip uninstall -y sasmodels |
---|
| 25 | pip uninstall -y tinycc |
---|
| 26 | |
---|
| 27 | :: TINYCC build #################################################### |
---|
| 28 | cd %WORKSPACE% |
---|
| 29 | cd tinycc |
---|
| 30 | %PYTHON% setup.py build install |
---|
| 31 | |
---|
| 32 | :: SASMODELS build #################################################### |
---|
| 33 | cd %WORKSPACE% |
---|
| 34 | cd sasmodels |
---|
| 35 | %PYTHON% setup.py build |
---|
| 36 | |
---|
| 37 | :: SASMODELS doc ###################################################### |
---|
| 38 | cd doc |
---|
| 39 | make html |
---|
| 40 | |
---|
| 41 | :: SASMODELS install ################################################ |
---|
| 42 | cd %WORKSPACE% |
---|
| 43 | cd sasmodels |
---|
| 44 | %PYTHON% setup.py install |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | :: NOW BUILD SASVIEW |
---|
| 48 | |
---|
| 49 | :: SASVIEW check dep ################################################ |
---|
| 50 | cd %WORKSPACE% |
---|
| 51 | cd sasview |
---|
| 52 | %PYTHON% check_packages.py |
---|
| 53 | |
---|
| 54 | |
---|
| 55 | :: SASVIEW build install ################################################ |
---|
| 56 | cd %WORKSPACE% |
---|
| 57 | cd sasview |
---|
| 58 | |
---|
| 59 | :: MAKE GUI FROM UI FILES |
---|
| 60 | %PYTHON% src\sas\qtgui\convertUI.py |
---|
| 61 | %PYTHON% setup.py build docs install |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | :: :: SASVIEW utest ###################################################### |
---|
| 65 | :: NOT YET IMPLEMENTED FOR THE NEW Qt5 SasView 5.0 |
---|
| 66 | :: cd %WORKSPACE%\sasview\test |
---|
| 67 | :: %PYTHON% utest_sasview.py |
---|
| 68 | |
---|
| 69 | |
---|
| 70 | :: SASVIEW INSTALLER ################################################## |
---|
| 71 | cd %WORKSPACE% |
---|
| 72 | cd sasview |
---|
| 73 | cd installers |
---|
| 74 | |
---|
| 75 | :: USING PYINSTALLER |
---|
| 76 | %PYINSTALLER% sasview_qt5.spec |
---|
| 77 | |
---|
| 78 | ::# :: USING PY2EXE |
---|
| 79 | ::# %PYTHON% setup_exe.py py2exe |
---|
| 80 | |
---|
| 81 | |
---|
| 82 | :: READY FOR INNO |
---|
| 83 | %PYTHON% installer_generator.py |
---|
| 84 | %INNO% installer.iss |
---|
| 85 | cd Output |
---|
| 86 | xcopy setupSasView.exe %WORKSPACE%\sasview\dist |
---|