How to install from source ("develop")? #4636
Replies: 3 comments 6 replies
-
For a quick conda/mamba environment one can use mamba create -n mda312dev python=3.12
mamba install -n mda312dev --only-deps mdanalysis mdanalysistests
mamba activate mda312dev which makes use of It has the disadvantage that these dependencies may be different in the current source.... but it's quick. |
Beta Was this translation helpful? Give feedback.
-
Since we don't offer an environment file, the best approach is to just manually list all the deps to install imho. We could offer an environment file, and I looked into this a while ago, but it requires an action to check our CI vs what we store. Note: Before someone says "let's switch completely to environment files" - the source of truth is our CI deps build action, we don't use environment files because they are too inflexible, it really won't work, I tried. |
Beta Was this translation helpful? Give feedback.
-
@orbeckst I'm not sure if this was your initial request, but I think you can try following syntax of # install default package
python -m pip install 'mdanalysis @ git+https://github.com/MDAnalysis/mdanalysis.git@develop#subdirectory=package'
# install a particular tag -- note the single quotes!
python -m pip install 'mdanalysis[analysis] @ git+https://github.com/MDAnalysis/mdanalysis.git@develop#subdirectory=package' Note the single quotes in the latter option -- won't work without them (will install default branch). And this is for bash shell, not sure if it works for others without hard quoting (though I think you can safely quote the I usually do that in a virtual environment, which works perfectly fine, thanks to the dev team. Also, for the sake of huge speed gain, I recommend doing this with uv, which supports exactly the same syntax ( |
Beta Was this translation helpful? Give feedback.
-
What's the best way to install MDAnalysis from source, in particular the develop branch after you forked the mdanalysis repo:
git clone https://github.com/your-user-name/mdanalysis.git cd mdanalysis git remote add upstream https://github.com/MDAnalysis/mdanalysis
The installing develop instructions in the User Guide are outdated (issue MDAnalysis/UserGuide#368). What's the best/cleanest way to install?
mamba
/conda
)pip
andvirtualenv
... and your compiler toolchain)Beta Was this translation helpful? Give feedback.
All reactions