Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add environment.yml file for conda environment #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ Download Miniconda3 from the [conda website](https://conda.io/miniconda.html)
```csh
bash Miniconda3-latest-Linux-x86_64.sh
(specify .miniconda3 and not miniconda3 as target dir for conda)
bash

conda update conda
conda create --name petsc python
```

Create the conda environment from the `enviroment.yml` file, and activate the new environment for use.
```csh
conda env create -f environment.yml

source activate petsc
conda install -c conda-forge petsc4py
conda install -c conda-forge netcdf4
conda install -c conda-forge matplotlib
conda install -c conda-forge snakeviz
```

# Run on datarmor
Expand Down
12 changes: 12 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: petsc

channels:
- defaults
- conda-forge

dependencies:
- python=3.6
- netcdf4
- matplotlib
- snakeviz
- conda-forge::petsc4py