| 1 | = Tartu School SasView Instructions = |
| 2 | |
| 3 | = Installing for Windows or Mac = |
| 4 | Download and install the latest release of SasView for your platform (Windows 32bit / Windows 64bit / Mac) from: [https://github.com/SasView/sasview/releases/tag/v4.1.2] |
| 5 | |
| 6 | |
| 7 | = Running Sasview on Linux = |
| 8 | The following instructions concern Ubuntu 16.04 but should provide sufficient guidelines for any linux distribution. These instructions obviously reference the package manger on Debian based system (apt), so you should replace such commands with the correct ones for your distro. |
| 9 | |
| 10 | == Download source code for !SasView and !SasModels == |
| 11 | - To obtain the source code you need to have git running. if you haven't already got it, it can be obtained from Ubuntu repository |
| 12 | {{{ |
| 13 | sudo apt-get install git |
| 14 | }}} |
| 15 | - The easy way to download the !SasView and !SasModels code is by simply cloning a git repository |
| 16 | {{{ |
| 17 | mkdir sasview-code |
| 18 | cd sasview-code |
| 19 | git clone https://github.com/SasView/sasview |
| 20 | git clone https://github.com/SasView/sasmodels |
| 21 | }}} |
| 22 | - This will create a sasview-code folder in your current directory and then check out the latest version of the sasview and sasmodels code. However, we need to use a stable version and not the developer version. So we need to then do |
| 23 | {{{ |
| 24 | cd sasview |
| 25 | git checkout v4.1.2 |
| 26 | cd ../sasmodels |
| 27 | git checkout v0.96 |
| 28 | }}} |
| 29 | - Each of !SasView and !SasModels should now be checked out at the current release version. |
| 30 | |
| 31 | == Install dependencies using apt-get == |
| 32 | - Scientific python packages (numpy, scipy) together with matplotlib, pylint and wxgtk2.8 can be installed by running |
| 33 | {{{ |
| 34 | sudo apt-get install python-numpy python-scipy python-matplotlib pylint python-wxgtk3.0 pyopencl |
| 35 | }}} |
| 36 | |
| 37 | == Install pip == |
| 38 | - The remaining dependencies can be installed using pip, which can be obtained by running the following: |
| 39 | {{{ |
| 40 | wget https://bootstrap.pypa.io/get-pip.py |
| 41 | sudo python get-pip.py |
| 42 | }}} |
| 43 | |
| 44 | == Install dependencies using pip == |
| 45 | - Once pip is obtained the remaining dependencies are installed by: |
| 46 | {{{ |
| 47 | sudo pip install unittest-xml-reporting |
| 48 | sudo pip install bumps |
| 49 | sudo pip install periodictable |
| 50 | sudo pip install sphinx |
| 51 | }}} |
| 52 | |
| 53 | == Run !SasView == |
| 54 | - Then one can navigate to a !SasView source directory (most likely "cd sasview") and simply run |
| 55 | {{{ |
| 56 | python run.py |
| 57 | }}} |
| 58 | - This should then build !SasModels as needed and run !SasView. |
| 59 | |
| 60 | == Building the Help Docs == |
| 61 | The process for building the help docs has been steadily evolving. The latest instructions might be found [http://trac.sasview.org/wiki/BuildDocs here] |