| 1 | = Build Instructions for Linux (Ubuntu) = |
| 2 | |
| 3 | The following instructions concern Ubuntu 14.04 but should provide sufficient guidelines for any linux distribution. |
| 4 | Some packages were installed from Ubuntu repository with apt-get, while others required pip. |
| 5 | |
| 6 | == Download source code for !SasView == |
| 7 | - The easy way to download !SasView code is by simply cloning a git repository |
| 8 | {{{ |
| 9 | git clone https://github.com/SasView/sasview |
| 10 | }}} |
| 11 | This will create a sasview folder in your current directory |
| 12 | |
| 13 | == Install dependencies using apt-get == |
| 14 | - Scientific python packages (numpy, scipy) together with matplotlib, pylint and wxgtk2.8 can be installed by running |
| 15 | {{{ |
| 16 | sudo apt-get install python-numpy python-scipy python-matplotlib pylint python-wxgtk2.8 |
| 17 | }}} |
| 18 | |
| 19 | == Install pip == |
| 20 | - The remaining dependencies can be installed using pip, which one could get and install by running the following: |
| 21 | {{{ |
| 22 | wget https://bootstrap.pypa.io/get-pip.py |
| 23 | sudo python get-pip.py |
| 24 | }}} |
| 25 | |
| 26 | == Install dependencies using pip == |
| 27 | - Once pip is installed one can install the remaining dependencies |
| 28 | {{{ |
| 29 | sudo pip install unittest-xml-reporting |
| 30 | sudo pip install bumps |
| 31 | sudo pip install periodictable |
| 32 | sudo pip install sphinx |
| 33 | }}} |
| 34 | |
| 35 | == Compile !SasView == |
| 36 | - Then one can navigate to a !SasView source directory (most likely cd sasview) and the simply run |
| 37 | {{{ |
| 38 | python setup.py build # will build the package underneath 'build/' |
| 39 | python setup.py install # will install the package |
| 40 | }}} |
| 41 | |
| 42 | sudo commnand might be required for a global installation |