Commit 929503e5ec917626b6ead256474edaddd7030d0c
1 parent
c009a326
Add section to explain creation of conda package of development version
Showing
1 changed file
with
34 additions
and
0 deletions
doc/source/admin/install_devel.rst
| @@ -73,3 +73,37 @@ on how to install GammaLib. | @@ -73,3 +73,37 @@ on how to install GammaLib. | ||
| 73 | pyext folder. However, you do not need `swig <http://www.swig.org/>`_ | 73 | pyext folder. However, you do not need `swig <http://www.swig.org/>`_ |
| 74 | when fetching a release as the Python wrappers are bundled with the | 74 | when fetching a release as the Python wrappers are bundled with the |
| 75 | release tarballs. | 75 | release tarballs. |
| 76 | + | ||
| 77 | +Making a conda package | ||
| 78 | +---------------------- | ||
| 79 | + | ||
| 80 | +To create a conda package for the development version, clone the gammalib | ||
| 81 | +source code using | ||
| 82 | + | ||
| 83 | +.. code-block:: bash | ||
| 84 | + | ||
| 85 | + $ git clone https://cta-gitlab.irap.omp.eu/gammalib/gammalib.git | ||
| 86 | + | ||
| 87 | +and type the following to create the conda packages (make sure that anaconda is | ||
| 88 | +included in your ``$PATH`` environment): | ||
| 89 | + | ||
| 90 | +.. code-block:: bash | ||
| 91 | + | ||
| 92 | + $ cd gammalib | ||
| 93 | + $ git checkout devel | ||
| 94 | + $ ./autogen.sh | ||
| 95 | + $ ./configure | ||
| 96 | + $ conda-build dev/conda.recipe | ||
| 97 | + | ||
| 98 | +Once this is done, you can create a conda environment using the development | ||
| 99 | +version as follows: | ||
| 100 | + | ||
| 101 | +.. code-block:: bash | ||
| 102 | + | ||
| 103 | + $ conda create -n gammalib-devel python=3.6 | ||
| 104 | + $ source activate gammalib-devel | ||
| 105 | + $ conda install --use-local gammalib=1.6.0.dev1 | ||
| 106 | + | ||
| 107 | +Note that you can chose between Python 2.7, 3.5, 3.6 and 3.7 for your | ||
| 108 | +conda environment. | ||
| 109 | + |