-
Notifications
You must be signed in to change notification settings - Fork 652
DevelopmentBranch
MDAnalysis is actively developed on the develop branch (as described under DevelopmentWorkflow). The develop branch is supposed to pass all tests and be usable; however, it is not the released version of MDAnalysis and things can change quickly. There may also be known bugs that we are working on fixing before the next release.
If you require stability then use a release of MDAnalysis (corresponding to the code on the master branch) – see the Installation Quickstart.
Everyone is more than welcome to use the development version but you should be aware that you are then first and foremost a alpha-tester: Things may break in horrible ways (but your feedback through the mailing list and the Issue Tracker is much appreciated). (That said, many of the core developers are using the development code for their daily work.)
If you find yourself using the development branch a lot then consider signing up for the developer mailing list where new features and testing of the development code are primarily discussed.
A quick overview over the latest additions to the development branch is provided by the list of commits to the develop branch.
The following instructions are for a read-only version of the source code (see git for further details on the git clone
command and and DistributedDevelopment for more help).
Clone the repository and you directly get the develop branch:
git clone https://github.com/MDAnalysis/mdanalysis.git
cd mdanalysis
You only have to carry out the above commands once.
Let's check that you are on the development branch: The command
git branch
should show something similar to
* develop
The asterisk in front of develop indicates that you have checked out the development version of MDAnalysis.
You can update it to the very latest version with a simple
git pull
If you want to use the latest officially released version of the source code then switch to the master branch:
git fetch origin master
git branch master origin/master # also make master branch available
git checkout master
You can go back to the development version with
git checkout develop
The MDAnalysis source code repository contains the actual MDAnalysis library and test code. When using the development branch it is a good idea to install both so that you can always run the tests and verify that the current version of the code you're using has not been broken inadvertently.
The following uses pip install
to mean "install the package in whichever way you normally do". (In particular, as a developer pip install -e
is often a very handy way to work on the code as it it takes changes to the code immediately into account.)
In order to build from develop you need
- working C/C++ compiler
- Python 2.7.x or Python ≥ 3.4
- Python packages already installed
cython
numpy
Use pip
to build and install; see the docs for pip
on how to customize installation.
The library lives in the mdanalysis/package directory.
pip install package/
(Note: the slash /
after package
is important!)
(Ideally, this should also install additional dependencies but you might want to install numpy, scipy, biopython, netcdf4/hdf5 libraries through your operating systems package management system or use the anaconda distribution.)
The UnitTests are stored together with test data in mdanalysis/testsuite.
pip install testsuite/
More details can be found under UnitTests.
You want to see all tests pass and no ERROR or FAIL (unless the test is marked with "knownfailure").
You can report any problems encountered through the mailing list (preferrably the ones for development) or the Issue Tracker.