Open-Minds-Lab / MRdataset

MRdataset : unified interface to various neuroimaging dataset formats
https://open-minds-lab.github.io/MRdataset/
Apache License 2.0
1 stars 4 forks source link

[JOSS] `protocol` version when installing from source vs install through pip #24

Closed htwangtw closed 9 months ago

htwangtw commented 10 months ago

openjournals/joss-reviews#6269

Description

This is part of the JOSS submission review.

In the installation instruction, the stable release will install a key dependency protocol version 0.3, however if we strictly follow the install from source instruction, it will be 0.1.

These two things should be consistent.

What I Did

virtualenv env-stable
source env-stable/bin/activate
pip install -U MRdataset
pip list

From source:

git clone git://github.com/Open-Minds-Lab/MRdataset
cd MRdataset
virtualenv env
source env/bin/activate
pip install git+https://github.com/sinhaharsh/protocol.git#egg=protocol
pip install -r requirements_dev.txt
pip install -e .
pip list
raamana commented 10 months ago

that's a great catch Hao, thank you. I guess we never attempted install from source :)

we will update the docs to make it they should use pip install -U MRdataset when possible, and only when they trying to contribute as a developer should they use the other instructions.

I personally don't understand the parameter #egg=protocol in this command in pip install git+https://github.com/sinhaharsh/protocol.git#egg=protocol but my guess is we don't need it. @sinhaharsh and I take a look and fix the docs asap.

sinhaharsh commented 10 months ago

Compiling protocol from source was initially required. It's surely not required anymore. The line for installing protocol is removed from the documentation. Thank you Hao.

sinhaharsh commented 9 months ago

The installation instructions are now updated. Installing MRdataset will also install latest protocol from PyPI

htwangtw commented 9 months ago

LGTM!