You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _episodes/02-installation.md
+108-4Lines changed: 108 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,117 @@ title: "Installation"
3
3
teaching: 0
4
4
exercises: 0
5
5
questions:
6
-
- "Key question (FIXME)"
6
+
- "What are the prerequisites for installing ESMValTool?"
7
+
- "How do I confirm that the installation was succesful?"
7
8
objectives:
8
-
- "First learning objective. (FIXME)"
9
+
- "Execute a succesful ESMValTool installation"
9
10
keypoints:
10
-
- "First key point. Brief Answer to questions. (FIXME)"
11
+
- "ESMValTool is installed from source code that lives in the [GitHub repository](https://github.com/ESMValGroup/ESMValTool)"
12
+
- "All the required packages can be installed using conda and the [environment.yml file](https://github.com/ESMValGroup/ESMValTool/blob/master/environment.yml)"
13
+
- "You can find more information about installation in the [documentation](https://esmvaltool.readthedocs.io/en/latest/getting_started/install.html)"
11
14
---
12
-
FIXME
15
+
16
+
> ## Attention
17
+
>
18
+
> * This episode is based on the ESMValTool installation instructions, for more information and advanced cases you can visit the ESMValTool [documentation](https://esmvaltool.readthedocs.io/en/latest/getting_started/install.html).
19
+
> * For this episode it is assumed you have knowledge of [git](https://git-scm.com/) you can refresh your knowledge in the corresponding [git carpentries course](http://swcarpentry.github.io/git-novice/).
20
+
{: .callout}
21
+
22
+
## Obtaining the source code
23
+
24
+
The ESMValTool source code is available on a public GitHub repository:
25
+
https://github.com/ESMValGroup/ESMValTool
26
+
27
+
The easiest way to obtain it is to clone the repository using git.
28
+
To clone the public repository open a terminal window and type:
The environment is called ``esmvaltool`` by default, but it is possible to use
76
+
the option ``--name ENVIRONMENT_NAME`` to define a custom name. You can activate
77
+
the environment using the command:
78
+
79
+
~~~
80
+
conda activate esmvaltool
81
+
~~~
82
+
{: .source}
83
+
84
+
If you run into trouble, please try recreating the environment. More information can be found in the (conda documentation)[https://docs.conda.io/en/latest/].
85
+
86
+
87
+
## Software installation
88
+
89
+
Once all prerequisites are fulfilled, ESMValTool can be installed by running
90
+
the following commands in the directory containing the ESMValTool source code:
91
+
92
+
~~~
93
+
pip install .
94
+
~~~
95
+
{: .source}
96
+
97
+
## Test the installation
98
+
99
+
The next step is to check that the installation works properly.
100
+
To do this, run the tool with:
101
+
102
+
~~~
103
+
esmvaltool --help
104
+
~~~
105
+
{: .source}
106
+
107
+
If everything was installed properly, ESMValTool should have printed a
108
+
help message to the console.
109
+
110
+
For a more complete installation verification, run the automated tests and
0 commit comments