Skip to content

DevNotes_CondaDevEnviroment

Wojciech Potrzebowski edited this page Jun 20, 2022 · 29 revisions

Example for setting up developers enviroment using pip from conda envioremnt.
Note 1: This assumes that you have anaconda and git installed
Note 3: All commands should be executed from terminal (Terminal on OSX and Linux and Anaconda Prompt on Windows)

Setup conda enviroment:

conda create -n sasview_dev python=3.9

Activate enviroment

conda activate sasview_dev

Clone sasview and sasmodels repositories

git clone https://github.com/SasView/sasview.git
git clone https://github.com/SasView/sasmodels.git

Go to sasview folder and switch to the env_setup branch (this will be simplified in the future)

git checkout env_setup

Then install dependencies:

pip install -r build_tools/requirements.txt

Now checkout to main branch

git checkout main

Install sasmodels and sasview

Go to sasmodels and sasview folders (separetly) and run:
python setup.py install

Eventually in the sasview folder run:

python run.py

Clone this wiki locally