Last change
on this file since c71b20a was
1095866,
checked in by wojciech, 6 years ago
|
yml file edited to mitigate pyopencl failure
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Rev | Line | |
---|
[fb3d974] | 1 | # Set up correct shell |
---|
| 2 | #!/bin/bash |
---|
| 3 | |
---|
| 4 | ## Set up path for py36 - conda |
---|
[bc8750eb] | 5 | export PATH=/home/sasview/anaconda3/bin:$PATH |
---|
[1095866] | 6 | export QT_QPA_PLATFORM=offscreen |
---|
[fb3d974] | 7 | |
---|
| 8 | # Set proxy |
---|
| 9 | export http_proxy=http://192.168.1.1:8123 |
---|
| 10 | export https_proxy=http://192.168.1.1:8123 |
---|
| 11 | |
---|
| 12 | # List conda envs already on system |
---|
| 13 | conda env list |
---|
| 14 | |
---|
| 15 | # Make new env from git yml file |
---|
| 16 | cd $WORKSPACE |
---|
| 17 | cd sasview |
---|
| 18 | cd build_tools |
---|
[8dd7b79] | 19 | conda env create --force -f conda_qt5_min_ubuntu.yml |
---|
[fb3d974] | 20 | conda env list |
---|
| 21 | |
---|
| 22 | # Activate new env |
---|
| 23 | source activate qt5_ubuntu |
---|
| 24 | conda list |
---|
| 25 | conda env list |
---|
| 26 | |
---|
| 27 | # Now build Sasview |
---|
| 28 | |
---|
| 29 | # Sasmodels |
---|
| 30 | cd $WORKSPACE |
---|
| 31 | cd sasmodels |
---|
| 32 | python setup.py build |
---|
| 33 | |
---|
| 34 | cd $WORKSPACE |
---|
| 35 | cd sasmodels |
---|
| 36 | cd doc |
---|
| 37 | make html |
---|
| 38 | |
---|
| 39 | cd $WORKSPACE |
---|
| 40 | cd sasmodels |
---|
| 41 | python setup.py build install |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | # SasView |
---|
| 45 | cd $WORKSPACE |
---|
| 46 | cd sasview |
---|
| 47 | python src/sas/qtgui/convertUI.py |
---|
[3bd0cd7] | 48 | python setup.py build docs install |
---|
[fb3d974] | 49 | |
---|
| 50 | # Pyinstaller |
---|
| 51 | cd $WORKSPACE |
---|
| 52 | cd sasview |
---|
| 53 | cd installers |
---|
[ccf44de] | 54 | pyinstaller sasview_qt5_min_centos.spec |
---|
[fb3d974] | 55 | |
---|
| 56 | cd $WORKSPACE |
---|
| 57 | cd sasview |
---|
| 58 | cd installers |
---|
| 59 | cp run_sasview.sh dist/sasview |
---|
| 60 | cp set_sasview_qt5_path.sh dist/sasview |
---|
| 61 | cd dist |
---|
| 62 | mv sasview SasView |
---|
| 63 | tar czvf SasView.tar.gz SasView |
---|
| 64 | |
---|
Note: See
TracBrowser
for help on using the repository browser.