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
Add instructions for correct usage of setup_miniconda.sh. (#126)
* Add instructions for correct usage of setup_miniconda.sh. Update Conda to 23 and adapt README.md and tmpl/README.md.j2 accordingly.
* Update README with copier version
* update miniconda version
---------
Co-authored-by: Claire Merker <34312518+clairemerker@users.noreply.github.com>
Co-authored-by: clairemerker <claire.merker@meteoswiss.ch>
Copy file name to clipboardExpand all lines: README.md
+26-4Lines changed: 26 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,17 +8,39 @@ More information on the tools, intended workflow, etc. can be found on
8
8
GH pages of this repository (https://meteoswiss-apn.github.io/mch-python-blueprint/).
9
9
10
10
## Preparation
11
+
11
12
Ensure that your active Python version is 3.7 or higher.
12
-
The recommended way to manage Python versions is with `Conda` (https://docs.conda.io/en/latest/). On CSCS machines it is recommended to install the leaner `Miniconda` (https://docs.conda.io/en/latest/miniconda.html), which offers enough functionality for most of our use cases. If you don't want to do this step manually, you can also use the script that is provided in the copier template `tmpl/tools/setup_miniconda.sh`.
13
+
The recommended way to manage Python versions is with `Conda`
14
+
(https://docs.conda.io/en/latest/).
15
+
On CSCS machines it is recommended to install the leaner `Miniconda`
16
+
(https://docs.conda.io/en/latest/miniconda.html),
17
+
which offers enough functionality for most of our use cases.
18
+
If you don't want to do this step manually, you may use the script that is
19
+
provided in the copier template `tmpl/tools/setup_miniconda.sh`.
20
+
The default installation path of this script is the current working directory,
21
+
you might want to change that with the `-p` option to a common location for all
22
+
environments, like e.g. `$SCRATCH`. If you want the script to immediately
23
+
initialize conda (executing `conda init` and thereby adding a few commands at the
24
+
end of your `.bashrc`) after installation, add the `-u` option:
25
+
26
+
```bash
27
+
tmpl/tools/setup_miniconda.sh -p $SCRATCH -u
28
+
```
29
+
30
+
In case you ever need to uninstall miniconda, do the following:
31
+
32
+
```bash
33
+
conda init --reverse --all
34
+
rm -rf $SCRATCH/miniconda
35
+
```
13
36
14
37
## Install Copier
15
38
16
-
First you have to install copier and its requirements. Ideally you do it in a conda environment. Either manually
39
+
First you have to install copier and its requirements. Ideally you do this in a conda environment:
The recommended way to manage Python versions is with `Conda`
9
+
(https://docs.conda.io/en/latest/).
10
+
On CSCS machines it is recommended to install the leaner `Miniconda`
11
+
(https://docs.conda.io/en/latest/miniconda.html),
12
+
which offers enough functionality for most of our use cases.
13
+
If you don't want to do this step manually, you may use the script
14
+
`tools/setup_miniconda.sh`.
15
+
The default installation path of this script is the current working directory,
16
+
you might want to change that with the `-p` option to a common location for all
17
+
environments, like e.g. `$SCRATCH`. If you want the script to immediately
18
+
initialize conda (executing `conda init` and thereby adding a few commands at the
19
+
end of your `.bashrc`) after installation, add the `-u` option:
20
+
21
+
```bash
22
+
tmpl/tools/setup_miniconda.sh -p $SCRATCH -u
23
+
```
24
+
25
+
In case you ever need to uninstall miniconda, do the following:
26
+
27
+
```bash
28
+
conda init --reverse --all
29
+
rm -rf $SCRATCH/miniconda
30
+
```
31
+
3
32
## Start developing
4
33
5
34
Once you created or cloned this repository, make sure the installation is running properly. Install the package dependencies with the provided script `setup_env.sh`.
0 commit comments