-
Notifications
You must be signed in to change notification settings - Fork 31
Testing Specviz Specutils Master Branches in a Conda Environment
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).
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
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
.
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.