Changes between Version 19 and Version 20 of DevNotes/DevGuide/CondaDevSetup


Ignore:
Timestamp:
Jan 18, 2018 12:23:17 PM (6 years ago)
Author:
richardh
Comment:

richard added some extra notes

Legend:

Unmodified
Added
Removed
Modified
  • DevNotes/DevGuide/CondaDevSetup

    v19 v20  
    33Download the latest '''64-Bit''' Python '''2.7''' Installer from http://continuum.io/downloads and run it. 
    44 
    5  * 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. 
     5 * 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, and is not the same as any previous installation (one reader installed 64 bit on top of previous 32 bit, not a good idea). 
    66 
    77 * 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. 
    88 
    9  * By default of Windows anaconda is installed for single user and not "everyone", which means you cannot run the conda command from an arbitrary command window. If you proceeded with default installation, you need to open Anaconda Prompt from Menu Start. Otherwise you can install anaconda for everyone, which requires root privlidges.  
     9 * By default of Windows anaconda is installed for single user and not "everyone", which means you cannot run the conda command from an arbitrary command window. If you proceeded with default installation, you need to open Anaconda Prompt from Menu Start. Otherwise you can install anaconda for everyone, which requires root privlidges. If "conda" is not a recognised command then add the install directory to your Windows user Path variable. 
    1010 
    1111== Step 2 - Download !SasView and sasmodels from github == 
     
    1616git clone https://github.com/SasView/sasmodels.git sasmodels 
    1717}}} 
    18  
    19  
    2018== Step 3 - Install dependencies using yml files == 
    2119Go to folder: 
     
    4139activate sasview 
    4240 
     41else if running from inside a Git Bash shell then use: source activate sasview. 
     42 
    4343#Mac OSX and Linux 
    4444source activate sasview 
    4545}}} 
    46  
    4746== Step 5 - run !SasView == 
    48 You should be ready to run sasview.  
    49 Go to sasview directory and run 
     47You should be ready to run sasview.  Go to sasview directory and run 
    5048 
    5149{{{ 
     
    5755pythonw run.py 
    5856 
     57To build the documentation you will still first need to do: 
     58 
     59python setup.py docs  
     60 
    5961}}} 
    60 == [=#anchor1 Step 6 - Install Git (Optional)] == 
     62== [=#anchor1 Step 6 - try the new qt gui (highly experimental work in progress)] == 
     63''Some notes as of 18 Jan 2018 based on a Windows 7 install. Start with Git bash in your sasview directory.'' 
     64 
     65source deactivate 
     66 
     67git checkout ESS_GUI 
     68 
     69''Look for sasview/build_tools/conda_py3_qt5.yml, open it in an editor, save it somewhere else outside of git control, '''remove''' any pip lines for sasview and sasmodels which will elsewise throw errors. (Also added a line  ''  - tinycc==1.1  '' but don't know if that was absolutely necessary)'' 
     70 
     71conda env create -f=/path to your new yml file/conda_py3_qt5_new.yml 
     72 
     73source activate qt5 
     74 
     75cd src/sas/qtgui 
     76 
     77python convertUI.py 
     78 
     79cd ../../.. 
     80 
     81python run.py 
     82 
     83''You may then need to install 64 bit Microsoft Visual C++ 14.0 compiler by following the link requested, as the latest changes to use only TinyCC compiler are not yet merged with this branch. Other useful conda commands:'' 
     84 
     85conda info --envs      ''will show that you now have both sasview and qt5 environments.'' 
     86 
     87conda env remove --name qt5''  '' 
     88 
     89''will remove the qt5 environment, though the files involved seem to stay on your hard drive so a new ''conda env create ''is much faster than the first time.'' 
     90 
     91''If it does not work the first time through, try going back to the normal sasview master, then repeat the steps above. Piotr and others will be making this easier in the future.'' 
     92 
     93== [=#anchor1 Step 7 - Install Git (Optional)] == 
    6194Install Git for your platform by following instructions: 
    6295 
     
    72105git config --global user.email johndoe@example.com 
    73106}}} 
     107If you work behind proxy remmber to configure 
    74108 
    75 If you work behind proxy remmber to configure 
    76109{{{ 
    77110e.g. git config --global http.proxy 192.168.1.1:XXXX