Commit e505d857d862d0c3e23f09b5218dc2c08d57ee80
1 parent
21dbc1a5
Add conda package creation for devel version
Showing
1 changed file
with
41 additions
and
0 deletions
doc/source/admin/install_devel.rst
| ... | ... | @@ -95,3 +95,44 @@ on how to install ctools. |
| 95 | 95 | pyext folder. However, you do not need `swig <http://www.swig.org/>`_ |
| 96 | 96 | when fetching a release as the Python wrappers are bundled with the |
| 97 | 97 | release tarballs. |
| 98 | + | |
| 99 | + | |
| 100 | +Making a conda package | |
| 101 | +---------------------- | |
| 102 | + | |
| 103 | +To create a conda package for the development version, clone the gammalib and | |
| 104 | +ctools source codes using | |
| 105 | + | |
| 106 | +.. code-block:: bash | |
| 107 | + | |
| 108 | + $ git clone https://cta-gitlab.irap.omp.eu/gammalib/gammalib.git | |
| 109 | + $ git clone https://cta-gitlab.irap.omp.eu/ctools/ctools.git | |
| 110 | + | |
| 111 | +and type the following to create the conda packages (make sure that anaconda is | |
| 112 | +included in your ``$PATH`` environment): | |
| 113 | + | |
| 114 | +.. code-block:: bash | |
| 115 | + | |
| 116 | + $ cd gammalib | |
| 117 | + $ git checkout devel | |
| 118 | + $ ./autogen.sh | |
| 119 | + $ ./configure | |
| 120 | + $ conda-build dev/conda.recipe | |
| 121 | + $ cd ../ctools | |
| 122 | + $ git checkout devel | |
| 123 | + $ ./autogen.sh | |
| 124 | + $ ./configure | |
| 125 | + $ conda-build dev/conda.recipe | |
| 126 | + | |
| 127 | +Once this is done, you can create a conda environment using the development | |
| 128 | +version as follows: | |
| 129 | + | |
| 130 | +.. code-block:: bash | |
| 131 | + | |
| 132 | + $ conda create -n ctools-devel python=3.6 | |
| 133 | + $ source activate ctools-devel | |
| 134 | + $ conda install --use-local ctools=1.6.0.dev1 | |
| 135 | + | |
| 136 | +Note that you can chose between Python 2.7, 3.5, 3.6 and 3.7 for your | |
| 137 | +conda environment. | |
| 138 | + | ... | ... |