1 | Ubuntu Vagrant Setup for SasViewQt |
---|
2 | ---------------------------------- |
---|
3 | |
---|
4 | How-to setup VM SasViewQt Ubuntu1404 developer env using Vagrant |
---|
5 | |
---|
6 | A: Provision VM |
---|
7 | --------------- |
---|
8 | |
---|
9 | B: Log on to VM - Setup Anaconda |
---|
10 | -------------------------------- |
---|
11 | |
---|
12 | 1. Install miniconda: $ bash ./Miniconda2-latest-Linux-x86_64.sh |
---|
13 | 2. Export miniconda path: $ export PATH=/home/vagrant/miniconda2/bin:$PATH |
---|
14 | 3. Make sasviewqt env in minicona: conda env create -f environment.yml |
---|
15 | |
---|
16 | C: Build SasView |
---|
17 | ---------------- |
---|
18 | 1. clone sasview: git clone https://github.com/SasView/sasview |
---|
19 | 2. clone sasmodels: git clone https://github.com/SasView/sasmodels |
---|
20 | 3. show sasview branch: git remote show origin |
---|
21 | 4. checkout ESS\_GUI: git checkout ESS\_GUI |
---|
22 | 5. build sasmodels: python setup.py build |
---|
23 | 6. build sasmodels doc: make html |
---|
24 | 7. build sasview: python setup.py build |
---|
25 | 8. build sasview: python setup.py docs |
---|
26 | 9. run sasview: python run.py |
---|
27 | 10. cd SasView/sasview/src/sas/qtgui |
---|
28 | 11. make gui: ./make_ui.sh |
---|
29 | 12. python run.py / python Main\_Window.py depending on on your cloned githash |
---|
30 | |
---|
31 | Tips: |
---|
32 | ---- |
---|
33 | |
---|
34 | - $ export PATH=/home/vagrant/miniconda2/bin:$PATH |
---|
35 | - $ conda env export > environment.yml |
---|
36 | - $ conda env create -f environment.yml |
---|
37 | |
---|
38 | To activate this environment, use: |
---|
39 | |
---|
40 | - $ source activate sasviewqt |
---|
41 | |
---|
42 | To deactivate this environment, use: |
---|
43 | |
---|
44 | - $ source deactivate sasviewqt |
---|
45 | |
---|
46 | |
---|
47 | Known problems: |
---|
48 | --------------- |
---|
49 | |
---|
50 | - libxml2 not installed. |
---|
51 | |
---|