| 1 | = Easy Developer Setup Using Anaconda = |
| 2 | |
| 3 | == Step 1 - Install Anaconda == |
| 4 | |
| 5 | Download the latest '''64-Bit''' Python '''2.7''' Installer from http://continuum.io/downloads and run it. |
| 6 | |
| 7 | * The recommended destination folder is as good as any. If you deviate from this then it's probably worthwhile to make sure the path is short and contains no spaces. |
| 8 | |
| 9 | * At the Advanced Options screen, you need to consider whether or not you want to make Anaconda your default version of Python. Developers who do not work on multiple Python projects can just accept the defaults here. |
| 10 | |
| 11 | == Step 3 - Install Git (or optionally stay with SVN) == |
| 12 | |
| 13 | === Git === |
| 14 | Download: http://git-scm.com/download/win |
| 15 | |
| 16 | When installing, it may be worthwhile to make sure "Use Git from the Windows Command Prompt" is selected, rather than "Use Git from Bash only". This way you can use git from the same command line as you will use Anaconda. |
| 17 | |
| 18 | Set up your credentials: |
| 19 | |
| 20 | {{{ |
| 21 | git config --global user.name "John Doe" |
| 22 | git config --global user.email johndoe@example.com |
| 23 | }}} |
| 24 | |
| 25 | == Step 5 - Download SasView and sasmodels from github == |
| 26 | If you don't have installed go GIT section for instructions, otherwise simply run |
| 27 | {{{ |
| 28 | git clone https://github.com/SasView/sasview.git sasmodels |
| 29 | git clone https://github.com/SasView/sasmodels.git sasmodels |
| 30 | }}} |
| 31 | |
| 32 | == Step 6 - Check that the Right Version of Python is Being Used == |
| 33 | |
| 34 | Ask your console which versions of Python it can find: |
| 35 | |
| 36 | {{{ |
| 37 | where python |
| 38 | }}} |
| 39 | |
| 40 | Hopefully, the first python installation in the list is the recently-installed Anaconda version. If not, you have two options: |
| 41 | |
| 42 | 1. Whenever you call python on the command line from now on, use the fully resolved path, e.g.: |
| 43 | {{{ |
| 44 | C:/PathToAnaconda/python |
| 45 | }}} |
| 46 | |
| 47 | 2. Reorder your PATH/Path environment variables so that the Anaconda installation of Python appears BEFORE all the others. Environment variables can be modified by pressing the windows key, typing "edit the system environment variables" and hitting Enter. The built-in Windows way of doing this is not very nice. An easier way to edit environment variables is by installing [http://www.rapidee.com/en/download RapidEE]. |
| 48 | |
| 49 | Some things to consider: |
| 50 | |
| 51 | * Installations of !McStas might cause problems. If the installation of Python that comes bundled with !McStas appears in the PATH before Anaconda, then the solution is the same as above. |
| 52 | * Installations of Mantid *should* play nice with Anaconda. Let somebody know if it's causing a problem, though again, just make sure your PATH gives preferential treatment to Anaconda. |
| 53 | * If you have an old !SasView development environment set up, then you may have an installation of Python2.6 that doesn't play nice with Anaconda. Uninstall it using the Control Panel and it should clear everything up. |
| 54 | |