Commit 69ad6cfbde0557e5e4c74f2c10b366d89b4c713c
1 parent
ec3408e1
Update installation of development version section and build also Python 3.9 conda package
Showing
4 changed files
with
63 additions
and
43 deletions
dev/conda.recipe/conda_build_config.yaml
dev/conda.recipe/meta.yaml.in
| ... | ... | @@ -18,13 +18,13 @@ requirements: |
| 18 | 18 | - python |
| 19 | 19 | - setuptools |
| 20 | 20 | - cfitsio ==3.430 |
| 21 | - - readline ==7.0 | |
| 21 | + - readline >=7.0 | |
| 22 | 22 | - ncurses |
| 23 | 23 | - swig |
| 24 | 24 | run: |
| 25 | 25 | - python |
| 26 | 26 | - cfitsio ==3.430 |
| 27 | - - readline ==7.0 | |
| 27 | + - readline >=7.0 | |
| 28 | 28 | - ncurses |
| 29 | 29 | |
| 30 | 30 | about: | ... | ... |
doc/source/admin/install_devel.rst
| ... | ... | @@ -3,24 +3,33 @@ |
| 3 | 3 | Installing the development version |
| 4 | 4 | ================================== |
| 5 | 5 | |
| 6 | -The current development version of the code can be downloaded as source | |
| 7 | -tarballs or directly from the `Git <https://git-scm.com/>`_ repository. | |
| 6 | +Alternatively to stable releases you can also install the development version | |
| 7 | +of the code which includes the latest features that will become available | |
| 8 | +with the next stable release. Installing the development version is recommended if | |
| 9 | +you want to use latest code features and if you cannot wait for the next | |
| 10 | +stable release. The current GammaLib development release is | |
| 11 | +``gammalib-2.0.0.dev``. | |
| 8 | 12 | |
| 9 | -The current GammaLib development release is ``gammalib-2.0.0.dev``. | |
| 13 | +Installing the development version is also necessary **if you want to contribute | |
| 14 | +to code development. In that case please follow the instructions on** | |
| 15 | +:ref:`using_git` **and ignore the rest of this page.** | |
| 10 | 16 | |
| 11 | 17 | |
| 12 | -Source tarball | |
| 13 | --------------- | |
| 18 | +Getting the development version | |
| 19 | +------------------------------- | |
| 14 | 20 | |
| 15 | -Download the source tarball from the following link | |
| 21 | +The first step is to get the development version of the code. There are two | |
| 22 | +options for that first step: either get the source tarball or clone the | |
| 23 | +source code from the `Git <https://git-scm.com/>`_ repository. | |
| 16 | 24 | |
| 17 | -- `GammaLib <http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-2.0.0.dev.tar.gz>`_ | |
| 25 | +Getting the source tarball | |
| 26 | +~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| 18 | 27 | |
| 19 | -and follow the instructions on :ref:`install_source`. | |
| 28 | +Download the source tarball from the following link: | |
| 29 | +`GammaLib <http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-2.0.0.dev.tar.gz>`_ | |
| 20 | 30 | |
| 21 | - | |
| 22 | -Git repository | |
| 23 | --------------- | |
| 31 | +Cloning the Git repository | |
| 32 | +~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| 24 | 33 | |
| 25 | 34 | To clone the gammalib source code, type |
| 26 | 35 | |
| ... | ... | @@ -28,9 +37,9 @@ To clone the gammalib source code, type |
| 28 | 37 | |
| 29 | 38 | $ git clone https://cta-gitlab.irap.omp.eu/gammalib/gammalib.git |
| 30 | 39 | |
| 31 | -This will create a directory named gammalib under the current | |
| 32 | -working directory that will contain the gammalib source code. | |
| 33 | -In case that the cloning does not work you may try adding | |
| 40 | +This will create a directory named gammalib under the current working directory | |
| 41 | +that will contain the gammalib source code. In case that the cloning does not | |
| 42 | +work you may try adding | |
| 34 | 43 | |
| 35 | 44 | .. code-block:: bash |
| 36 | 45 | |
| ... | ... | @@ -42,19 +51,35 @@ or |
| 42 | 51 | |
| 43 | 52 | $ git config --global http.sslverify "false" |
| 44 | 53 | |
| 45 | -before retrieving the code. | |
| 46 | -Before you will be able to compile the code you need to generate the | |
| 47 | -configuration file using the ``autogen.sh`` script. | |
| 48 | -Also make sure that you're actually on the devel branch of the git | |
| 49 | -repository. GammaLib can be compiled and configured using | |
| 50 | -the following command sequence (the code will be installed into the | |
| 51 | -``/usr/local/gamma`` directory): | |
| 54 | +before retrieving the code. Before you will be able to compile the code directly | |
| 55 | +you need to generate the configuration file using the ``autogen.sh`` script. | |
| 56 | +Also make sure that you're actually on the devel branch of the git repository. | |
| 57 | +You do this by typing: | |
| 52 | 58 | |
| 53 | 59 | .. code-block:: bash |
| 54 | 60 | |
| 55 | 61 | $ cd gammalib |
| 56 | 62 | $ git checkout devel |
| 57 | 63 | $ ./autogen.sh |
| 64 | + | |
| 65 | + | |
| 66 | +Compiling the development version | |
| 67 | +--------------------------------- | |
| 68 | + | |
| 69 | +The second step is to compile the development version. You can either | |
| 70 | +compile the code directly using ``make`` or you can build a conda package. | |
| 71 | +The latter is preferred if you want to use GammaLib in a conda environment. | |
| 72 | +We do not recommend to compile the development version directly against a | |
| 73 | +conda version of Python. | |
| 74 | + | |
| 75 | +Compiling the development version | |
| 76 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| 77 | + | |
| 78 | +GammaLib can be compiled and configured using the following sequence of | |
| 79 | +commands (the code will be installed into the ``/usr/local/gamma`` directory): | |
| 80 | + | |
| 81 | +.. code-block:: bash | |
| 82 | + | |
| 58 | 83 | $ ./configure |
| 59 | 84 | $ make |
| 60 | 85 | $ make check |
| ... | ... | @@ -63,7 +88,7 @@ the following command sequence (the code will be installed into the |
| 63 | 88 | $ source $GAMMALIB/bin/gammalib-init.sh |
| 64 | 89 | |
| 65 | 90 | Please read the :ref:`install_source` section if you need more information |
| 66 | -on how to install GammaLib. | |
| 91 | +on how to compile and install GammaLib. | |
| 67 | 92 | |
| 68 | 93 | .. note:: |
| 69 | 94 | You need `swig <http://www.swig.org/>`_ on your system to build the |
| ... | ... | @@ -71,28 +96,18 @@ on how to install GammaLib. |
| 71 | 96 | not stored in the Git repository but are built using |
| 72 | 97 | `swig <http://www.swig.org/>`_ from interface files located in the |
| 73 | 98 | 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 | |
| 75 | - release tarballs. | |
| 99 | + when fetching a tarball as the Python wrappers are bundled with the | |
| 100 | + tarballs. | |
| 76 | 101 | |
| 77 | 102 | |
| 78 | -Making a conda package | |
| 79 | ----------------------- | |
| 103 | +Building a conda package | |
| 104 | +~~~~~~~~~~~~~~~~~~~~~~~~ | |
| 80 | 105 | |
| 81 | -To create a conda package for the development version, clone the gammalib | |
| 82 | -source code using | |
| 106 | +Alternatively you can create a conda package using the following sequence | |
| 107 | +of commands (make sure that anaconda is included in your ``$PATH`` environment): | |
| 83 | 108 | |
| 84 | 109 | .. code-block:: bash |
| 85 | 110 | |
| 86 | - $ git clone https://cta-gitlab.irap.omp.eu/gammalib/gammalib.git | |
| 87 | - | |
| 88 | -and type the following to create the conda packages (make sure that anaconda is | |
| 89 | -included in your ``$PATH`` environment): | |
| 90 | - | |
| 91 | -.. code-block:: bash | |
| 92 | - | |
| 93 | - $ cd gammalib | |
| 94 | - $ git checkout devel | |
| 95 | - $ ./autogen.sh | |
| 96 | 111 | $ ./configure |
| 97 | 112 | $ conda-build dev/conda.recipe |
| 98 | 113 | |
| ... | ... | @@ -105,6 +120,10 @@ version as follows: |
| 105 | 120 | $ source activate gammalib-devel |
| 106 | 121 | $ conda install --use-local gammalib=2.0.0.dev |
| 107 | 122 | |
| 108 | -Note that you can chose between Python 2.7, 3.5, 3.6, 3.7 and 3.8 for your | |
| 109 | -conda environment. | |
| 123 | +Note that you can choose between Python 2.7, 3.5, 3.6, 3.7, 3.8 and 3.9 for | |
| 124 | +your conda environment. If you only need the conda package for one specific | |
| 125 | +Python version you can build the conda package as follows: | |
| 126 | + | |
| 127 | +.. code-block:: bash | |
| 110 | 128 | |
| 129 | + $ conda-build dev/conda.recipe --python 3.6 | ... | ... |