Version 5 (modified by Peter Parker, 10 years ago) (diff)

Easy Developer Setup on Windows Using Anaconda

Current Issues

  • For now this is Windows only, though you may try other operating systems if you're happy to use the current versions of all packages.
  • OpenMP is not included in the version of MinGW bundled with Anaconda. Either turn OpenMP off, or download your own version of MinGW for now.

Step 1 - Install Anaconda

Download the latest Windows 32-Bit Python 2.7 Installer from http://continuum.io/downloads and run it.

  • 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.
  • 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.

Step 2 - Install Dependancies

Add the channel containing extra dependencies needed by SasView?:

conda config --add channels https://conda.binstar.org/PeterParker

Install all the SasView? dependencies need:

conda install --yes pylint matplotlib scipy pyparsing html5lib wxpython reportlab lxml PIL setuptools numpy comtypes pywin32 py2exe pisa periodictable bumps numpy sphinx unittest-xml-reporting

Step 3 - Install SVN (Soon to be Git!)

Download and install the latest version of SVN from http://sourceforge.net/projects/win32svn/files/latest/download.

Step 4 - Download the SasView? Source Code

svn checkout http://svn.code.sf.net/p/sasview/code/trunk sasview-code
cd sasview-code

Step 5 - Check that the Right Version of Python is Being Used

Ask your console which versions of Python it can find:

where python

Hopefully, the first python installation in the list is the recently-installed Anaconda version. If not, you have two options:

  1. Whenever you call python on the command line from now on, use the fully resolved path, e.g.:
    C:/PathToAnaconda/python
    
  1. 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 build-in Windows way of doing this is not very nice. An easier way to edit environment variables is by installing RapidEE.

Step 6 - Build SasView?

python setup.py build -cmingw32

Step 7 - Run SasView? from the Code

You should then be able to run SasView? “in-place” from the code, using:

python run.py