Skip to content

Commit

Permalink
Merge pull request #1104 from cdeil/conda-forge
Browse files Browse the repository at this point in the history
Change conda install instructions to conda-forge channel
  • Loading branch information
cdeil committed Aug 25, 2017
2 parents df9e330 + a10c2cf commit 6c386d8
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ env:

- PIP_DEPENDENCIES='uncertainties'

- CONDA_CHANNELS='conda-forge astropy sherpa openastronomy'
- CONDA_CHANNELS='conda-forge sherpa'

- FETCH_GAMMAPY_EXTRA=true
- FETCH_GAMMA_CAT=true
Expand Down
2 changes: 1 addition & 1 deletion docs/development/release.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Steps for the day of the release:
https://readthedocs.org/projects/gammapy/builds/
#. Draft the release announcement as a new file in https://github.com/gammapy/gammapy/tree/master/dev/notes
(usually by copy & pasting the announcement from the last release)
#. Update the Gammapy conda package at https://github.com/astropy/conda-channel-astropy/
#. Update the Gammapy conda-forge package at https://github.com/conda-forge/gammapy-feedstock
#. Update Gammapy Macports package at https://github.com/macports/macports-ports
#. Encourage the Gammapy developers to try out the new stable version (update and run tests)
via the Github issue for the release and wait a day or two for feedback.
Expand Down
2 changes: 1 addition & 1 deletion docs/install/conda.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ and then run these commands:

.. code-block:: bash
conda config --add channels astropy --add channels sherpa
conda config --add channels conda-forge --add channels sherpa
conda install gammapy naima \
scipy matplotlib ipython-notebook \
cython click
Expand Down
37 changes: 18 additions & 19 deletions docs/install/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,15 @@ Stable version

You can install the latest stable version of Gammapy with conda::

conda install -c astropy gammapy
conda install -c conda-forge gammapy

or with pip::

pip install gammapy
pip install gammapy

or with Macports (a package manager for Mac OS)::

sudo port install gammapy

sudo port install gammapy

Gammapy is not yet available in the Linux distributions, i.e. at this time you can't
install it with e.g. ``apt-get`` or ``yum``.
Expand All @@ -43,16 +42,16 @@ Development version

To install the development version of Gammapy::

git clone https://github.com/gammapy/gammapy.git
cd gammapy
pip install .
git clone https://github.com/gammapy/gammapy.git
cd gammapy
pip install .

of if you're using conda, you can install the development version like this::

git clone https://github.com/gammapy/gammapy.git
cd gammapy
conda install -f environment.yml
source activate gammapy-dev
git clone https://github.com/gammapy/gammapy.git
cd gammapy
conda install -f environment.yml
source activate gammapy-dev

Verify
------
Expand Down Expand Up @@ -85,14 +84,14 @@ Once you've made your choice how to install Gammapy, you can find detailed infor
on the following sub-pages:

.. toctree::
:maxdepth: 1

conda
pip
macports
other
check
dependencies
:maxdepth: 1

conda
pip
macports
other
check
dependencies


If you'd like to make a code contribution to Gammapy, please see the developer documentation
Expand Down
5 changes: 2 additions & 3 deletions gammapy-conda-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ bash miniconda.sh -b -p $INSTALL_DIR
export PATH="$INSTALL_DIR/bin:$PATH"
conda config --set always_yes yes --set changeps1 no

conda config --add channels astropy
conda config --add channels conda-forge
conda config --add channels sherpa

conda update -q conda
# Disk space now: 140 MB

# Finally ... install Gammapy and the most useful dependencies
conda install gammapy naima \
scipy matplotlib ipython-notebook
iminuit scipy matplotlib ipython-notebook
# Disk space now: 200 MB

# Nice to have extras
Expand All @@ -50,6 +50,5 @@ conda install \
# Disk space now: 747 MB

pip install reproject
pip install iminuit

conda install sherpa

0 comments on commit 6c386d8

Please sign in to comment.