Skip to content

Commit

Permalink
[BF]: updated conda installation and instructions so that pip package…
Browse files Browse the repository at this point in the history
…s are conda dependencies
  • Loading branch information
alexpron committed Jul 19, 2024
1 parent 957746a commit cbbe985
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/conda-installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ jobs:
- name: Install dependencies
shell: bash -el {0}
run: |
conda config --set pip_interop_enabled True
python -m pip install .
conda install -c conda-forge heudiconv git-annex=*=alldep* datalad
conda update --all
conda install -c conda-forge heudiconv bids-validator dcm2niix git-annex=*=alldep* datalad
# Create virtual env under each python version
# (optional and a bit redundant because we are already on a specific python)
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,13 @@ Optionally, rename the `.env.example` to `.env` and set the variables (`shanoir_
> This installation method is required if shanoir2bids.py is used
In an active conda virtual environment type
```
```bash
#use pip packages as dependencies
conda config --set pip_interop_enabled True
pip install .
#replace pip packages with conda packages when equivalent
conda update --all
# install missing conda packages (far simpler than using pip)
conda install -c conda-forge heudiconv git-annex=*=alldep* datalad
```
## Usage
Expand Down

0 comments on commit cbbe985

Please sign in to comment.