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


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

Legend:

Unmodified
Added
Removed
Modified
  • DevNotes/DevGuide/CondaDevSetup

    v1 v1  
     1= Easy Developer Setup Using Anaconda = 
     2 
     3== Step 1 - Install Anaconda == 
     4 
     5Download 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 === 
     14Download: http://git-scm.com/download/win 
     15 
     16When 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 
     18Set up your credentials: 
     19 
     20{{{ 
     21git config --global user.name "John Doe" 
     22git config --global user.email johndoe@example.com 
     23}}} 
     24 
     25== Step 5 - Download SasView and sasmodels from github == 
     26If you don't have installed go GIT section for instructions, otherwise simply run 
     27{{{ 
     28git clone https://github.com/SasView/sasview.git sasmodels 
     29git clone https://github.com/SasView/sasmodels.git sasmodels 
     30}}} 
     31 
     32== Step 6 - Check that the Right Version of Python is Being Used == 
     33 
     34Ask your console which versions of Python it can find: 
     35 
     36{{{ 
     37where python 
     38}}} 
     39 
     40Hopefully, the first python installation in the list is the recently-installed Anaconda version.  If not, you have two options: 
     41 
     421. 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 
     472. 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 
     49Some 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