Changes between Version 1 and Version 2 of DevNotes/DevGuide/CondaDevSetup


Ignore:
Timestamp:
Oct 28, 2017 7:07:28 AM (7 years ago)
Author:
wojciech
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • DevNotes/DevGuide/CondaDevSetup

    v1 v2  
    99* 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. 
    1010 
    11 == Step 3 - Install Git (or optionally stay with SVN) == 
     11== Step 2 - Download SasView and sasmodels from github == 
     12If you don't have installed go GIT section for instructions, otherwise simply run 
     13{{{ 
     14git clone https://github.com/SasView/sasview.git sasview 
     15git clone https://github.com/SasView/sasmodels.git sasmodels 
     16}}} 
     17 
     18== Step 3 - Install dependencies using yml files == 
     19 
     20Go to folder: 
     21{{{ 
     22sasview/build_tools/conda/ymls 
     23}}}  
     24 
     25and create conda enviroment using yml specific for your platform 
     26 
     27{{{ 
     28#Windows 
     29conda env create -f sasview-env-build_win.yml 
     30 
     31#Mac OSX 
     32conda env create -f sasview-env-build_osx.yml 
     33 
     34#Linux 
     35conda env create -f sasview-env-build_linux.yml 
     36}}} 
     37 
     38=== Step 4 - activate conda enviroment === 
     39{{{ 
     40#Windows 
     41call activate sasview 
     42 
     43#Mac OSX 
     44 
     45#Linux 
     46 
     47}}} 
     48 
     49 
     50== Step 3 - Install Git (Optional) == 
    1251 
    1352=== Git === 
    14 Download: http://git-scm.com/download/win 
    1553 
    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. 
     54Install Git for your platform by following instructions: 
     55{{{ 
     56https://git-scm.com/book/en/v2/Getting-Started-Installing-Git 
     57}}} 
     58 
     59When installing on Windows, 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. 
    1760 
    1861Set up your credentials: 
     
    2265git config --global user.email johndoe@example.com 
    2366}}} 
    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