Skip to content
This repository has been archived by the owner on Jul 22, 2021. It is now read-only.

Testing Specviz Specutils Master Branches in a Conda Environment

Craig Jones edited this page Jan 30, 2019 · 7 revisions

In order to setup a conda environment to have specviz and specutils installed from the master branch follow the instructions below. This will be useful to test PR's merged the same day (don't need to wait for an overnight build).

One Time Conda Environment Setup

Run the following commands the first time in order to setup the conda environment and to do the initial install of specviz and specutils from their master branches.

$ conda create -n specviz-master python=3.6 pyqt 
$ source activate specviz-master
$ pip install --upgrade git+https://github.com/spacetelescope/specviz 
$ pip install --upgrade git+https://github.com/astropy/specutils 

Regular Upgrade To Conda Environment

To upgrade your conda environment, created above, to remain current with specviz and specutils master, the following can be run:

$ source activate specviz-master
$ pip install --upgrade git+https://github.com/spacetelescope/specviz 
$ pip install --upgrade git+https://github.com/astropy/specutils 

Now you can run specviz and it will be based on GitHub master from specviz and specutils.

Install Specviz From a Branch

To install specviz from a branch that is not master one can do:

$ pip install --upgrade git+https://github.com/<github_user>/specviz@<branch_name>

for example to install the linelabels_documentation branch from ibsuko's repo one can do:

$ pip install --upgrade git+https://github.com/ibusko/specviz@linelabels_documentation

To find the branch information go to the PR and look for the line that is like:

ibusko wants to merge 27 commits into spacetelescope:master from ibusko:linelabels_documentation

It is the last part of this that is needed as that shows the github user and the branch name.