Skip to content

Commit

Permalink
Merge pull request #12 from umccr/setup/use-conda-over-mamba
Browse files Browse the repository at this point in the history
Update macos conda instructions
  • Loading branch information
alexiswl authored May 6, 2024
2 parents f3e9845 + e44d87c commit e359d73
Showing 1 changed file with 10 additions and 22 deletions.
32 changes: 10 additions & 22 deletions learners/files/macos_setup.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ Add the following chunk to the VSCode [user settings json][user_settings_json] t

<br>

### Install MiniConda
### Install Conda

[Install miniconda](https://docs.conda.io/projects/conda/en/latest/user-guide/install/macos.html)
[Install Miniconda][miniconda_install]

<br>

Expand All @@ -60,26 +60,12 @@ conda config --add channels conda-forge

<br>

::::::::::::::::::: callout

### M1 Users

MacOS M1 users may need to ensure `libarchive` (from the conda-forge channel) has first been installed on their conda system before using mamba [^1]

```bash
conda remove -n base libarchive
conda install -y -n base -c conda-forge \
libarchive
```

::::::::::::::::::

#### Create a conda virtual environment
#### Create a virtual environment

Create a virtual environment using conda

```bash
conda create --name cwltutorial python==3.11 mamba
conda create --name cwltutorial python==3.11
```

<br>
Expand All @@ -92,10 +78,10 @@ conda activate cwltutorial

<br>

#### Install prerequisites via Mamba
#### Install prerequisites via conda

```bash
mamba install --yes \
conda install --yes \
cwltool \
graphviz \
wget \
Expand All @@ -105,15 +91,17 @@ mamba install --yes \

:::::::::::::::: callout

Reactivating the conda virtual environment
### Reactivating the conda virtual environment

The virtual environment needs to be activated every time you start a terminal using
`conda activate cwltutorial`.

::::::::::::::::

[^1]: https://github.com/mamba-org/mamba/issues/1826#issuecomment-1196636463

[docker_install]: https://docs.docker.com/desktop/mac/install
[miniforge]: https://github.com/conda-forge/miniforge
[miniconda_install]: https://docs.anaconda.com/free/miniconda/miniconda-install/
[vs_code]: https://code.visualstudio.com/
[benten_vs_code_marketplace]: https://marketplace.visualstudio.com/items?itemName=sbg-rabix.benten-cwl
[redhat_yaml_vs_code_marketplace]: https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml
Expand Down

0 comments on commit e359d73

Please sign in to comment.