Skip to content

Commit

Permalink
Merge pull request #16 from alexpron/packaging
Browse files Browse the repository at this point in the history
[ENH] added explicit conda command installation for shanoir2bids
  • Loading branch information
quentinduche authored Jul 25, 2024
2 parents 6fa3b89 + 92cba08 commit 32f4b73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/conda-installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ jobs:
- name: Install dependencies
shell: bash -el {0}
run: |
conda config --set pip_interop_enabled True
python -m pip install .
conda update --all
conda install -c conda-forge heudiconv bids-validator dcm2niix git-annex=*=alldep* datalad
conda install -c conda-forge -c https://conda.anaconda.org/simpleitk SimpleITK brotli bids-validator certifi charset-normalizer dicom-anonymizer idna importlib-metadata 'numpy<2.0' pandas py7zr pybcj pycryptodomex pyppmd pytz pydicom python-dotenv python-dateutil requests six texttable tqdm typing_extensions urllib3 zipp pydicom dicom2nifti Pillow heudiconv 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: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,9 @@ Optionally, rename the `.env.example` to `.env` and set the variables (`shanoir_
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
conda install -c conda-forge -c https://conda.anaconda.org/simpleitk SimpleITK brotli bids-validator certifi charset-normalizer dicom-anonymizer idna importlib-metadata 'numpy<2.0' pandas py7zr pybcj pycryptodomex pyppmd pytz pydicom python-dotenv python-dateutil requests six texttable tqdm typing_extensions urllib3 zipp pydicom dicom2nifti Pillow heudiconv git-annex=*=alldep* datalad

```
## Usage

Expand Down

0 comments on commit 32f4b73

Please sign in to comment.