Skip to content

Commit 5ef1085

Browse files
committed
Fix pre-commit: trim trailing whitespace and ensure EOF newline"
1 parent d0f1936 commit 5ef1085

File tree

1 file changed

+35
-37
lines changed

1 file changed

+35
-37
lines changed

doc/source/installation.rst

Lines changed: 35 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,44 @@
44
Installation Guide
55
====================
66

7-
The latest version of **MDAnalysis** can be installed using :ref:`mamba-installation` (recommended),
8-
or :ref:`pip-installation`. If you need to install MDAnalysis from source, follow :ref:`source-installation`
9-
for stable releases. If you are a contributor or developer working on MDAnalysis, follow the
7+
The latest version of **MDAnalysis** can be installed using :ref:`mamba-installation` (recommended),
8+
or :ref:`pip-installation`. If you need to install MDAnalysis from source, follow :ref:`source-installation`
9+
for stable releases. If you are a contributor or developer working on MDAnalysis, follow the
1010
:ref:`development-installation` for editable installation and code modifications.
1111

12-
Currently, the :ref:`mamba-installation` installs a version of MDAnalysis that does **not** include `OpenMP`_
13-
acceleration due to limitations in precompiled conda packages. If you need `OpenMP`_-enabled features,
14-
consider installing via :ref:`pip-installation` and compiling from source with a compatible compiler and
12+
Currently, the :ref:`mamba-installation` installs a version of MDAnalysis that does **not** include `OpenMP`_
13+
acceleration due to limitations in precompiled conda packages. If you need `OpenMP`_-enabled features,
14+
consider installing via :ref:`pip-installation` and compiling from source with a compatible compiler and
1515
OpenMP support.
1616

17-
**MDAnalysisTests** is optional and is a separate :ref:`test suite <mdanalysistests>` used
18-
for verifying MDAnalysis installations and running User Guide examples. It is not required for
19-
daily use, but some tutorials rely on it. The package is approximately 90 MB and is not updated frequently.
17+
**MDAnalysisTests** is optional and is a separate :ref:`test suite <mdanalysistests>` used
18+
for verifying MDAnalysis installations and running User Guide examples. It is not required for
19+
daily use, but some tutorials rely on it. The package is approximately 90 MB and is not updated frequently.
2020
If you plan to use tutorial examples or contribute to MDAnalysis, installing it is recommended.
2121

22-
MDAnalysis supports specific Python versions. For the latest supported versions, please refer to the
22+
MDAnalysis supports specific Python versions. For the latest supported versions, please refer to the
2323
`CHANGELOG`_ or the `PyPI`_. Ensure you have a compatible Python version installed before proceeding.
2424

2525
.. note::
26-
MDAnalysis supports **Linux**, **macOS**, and **Windows**.
26+
MDAnalysis supports **Linux**, **macOS**, and **Windows**.
2727

28-
- If you encounter errors on **Windows** related to **Microsoft Visual C++ 14.0**, install the required **Build Tools for Visual Studio** from: `Microsoft Visual Studio Downloads`_.
29-
- If you encounter any other issues following these instructions, seek help on `GitHub Discussions (Installation)`_.
28+
- If you encounter errors on **Windows** related to **Microsoft Visual C++ 14.0**, install the required **Build Tools for Visual Studio** from: `Microsoft Visual Studio Downloads`_.
29+
- If you encounter any other issues following these instructions, seek help on `GitHub Discussions (Installation)`_.
3030

3131
.. _mamba-installation:
3232

33-
mamba/conda
33+
mamba/conda
3434
===========
3535

36-
For most users, `mamba`_ is the **recommended** way to install MDAnalysis. It is a faster drop-in
37-
replacement for `conda`_ and efficiently handles dependencies. We also recommend creating a new
36+
For most users, `mamba`_ is the **recommended** way to install MDAnalysis. It is a faster drop-in
37+
replacement for `conda`_ and efficiently handles dependencies. We also recommend creating a new
3838
environment for MDAnalysis to ensure a clean and isolated installation.
3939

4040
MDAnalysis supports two common ways to install with `mamba`_:
4141

4242
**1. Recommended: Use Mambaforge**
4343

44-
`Mambaforge`_ is a minimal `conda`_ distribution that includes `mamba`_ by default, uses the `conda-forge`_ channel
44+
`Mambaforge`_ is a minimal `conda`_ distribution that includes `mamba`_ by default, uses the `conda-forge`_ channel
4545
(preferred for MDAnalysis) and avoids clutter from `Anaconda`_ base packages.
4646

4747
To install MDAnalysis with `Mambaforge`_, follow the `mambaforge installation instructions`_ and then
@@ -87,10 +87,10 @@ Then create and activate an environment with MDAnalysis:
8787
8888
.. _pip-installation:
8989

90-
pip
90+
pip
9191
===
9292

93-
The following command will install or upgrade the latest stable version of MDAnalysis via `pip`_ with core dependencies.
93+
The following command will install or upgrade the latest stable version of MDAnalysis via `pip`_ with core dependencies.
9494
This means that some packages required by specific analysis modules will not be installed.
9595

9696
.. code-block:: bash
@@ -129,18 +129,18 @@ If you're using MDAnalysis in **JupyterLab**, install `ipywidgets`_ for progress
129129
Install from source
130130
===================
131131

132-
This section is for **users** who want to install a **specific stable version** of MDAnalysis
133-
(e.g., for reproducibility or to debug a release). This is **not** intended for development or code contributions.
132+
This section is for **users** who want to install a **specific stable version** of MDAnalysis
133+
(e.g., for reproducibility or to debug a release). This is **not** intended for development or code contributions.
134134
If you're a developer, see :ref:`development-installation`.
135135

136-
To install from source, you must first ensure that your environment already contains all necessary dependencies.
136+
To install from source, you must first ensure that your environment already contains all necessary dependencies.
137137
We recommend you check the :ref:`create-virtual-environment` to set up a clean development environment
138138
with all required dependencies. We recommend using `mamba`_ or `conda`_ to manage this setup.
139139

140140
Follow the steps in:
141141

142142
- `Set up with conda-forge`_
143-
- `Set up with mamba`_
143+
- `Set up with mamba`_
144144

145145
MDAnalysis uses different Git branches for different purposes:
146146

@@ -153,7 +153,7 @@ To install the **latest stable release** from source:
153153
154154
git clone https://github.com/MDAnalysis/mdanalysis
155155
cd mdanalysis
156-
git checkout release-<latest-version>
156+
git checkout release-<latest-version>
157157
pip install .
158158
159159
To run tests:
@@ -164,15 +164,15 @@ To run tests:
164164
165165
.. _development-installation:
166166

167-
Install for development
167+
Install for development
168168
==========================
169169

170-
This section is for **contributors and developers** who want to modify MDAnalysis
171-
or contribute to its development. You’ll install MDAnalysis in **editable mode**, which allows you to make code changes
170+
This section is for **contributors and developers** who want to modify MDAnalysis
171+
or contribute to its development. You’ll install MDAnalysis in **editable mode**, which allows you to make code changes
172172
without reinstalling the package each time.
173173

174-
Before installing, follow the steps described in the :ref:`source-installation` to set up a clean environment
175-
with all dependencies.
174+
Before installing, follow the steps described in the :ref:`source-installation` to set up a clean environment
175+
with all dependencies.
176176

177177
Once your environment is ready, install MDAnalysis in editable mode:
178178

@@ -184,7 +184,7 @@ Once your environment is ready, install MDAnalysis in editable mode:
184184
git checkout -b my-feature-branch # Create a new branch for your changes
185185
pip install -e package/
186186
187-
Installing in editable mode (`-e`) means that any changes you make to the MDAnalysis source code are immediately
187+
Installing in editable mode (`-e`) means that any changes you make to the MDAnalysis source code are immediately
188188
available without needing to reinstall.
189189

190190
If you plan to run tests you can install the test suite:
@@ -232,7 +232,7 @@ The optimal compiler flags depend on your CPU architecture. An example for an x8
232232
233233
Use of these flags can give a significant performance boost where the compiler can effectively autovectorise.
234234

235-
Be sure to use the recommended flags for your target architecture. For example, ARM platforms recommend using ``-mcpu`` instead of ``-march``, while
235+
Be sure to use the recommended flags for your target architecture. For example, ARM platforms recommend using ``-mcpu`` instead of ``-march``, while
236236
PowerPC platforms prefer both ``-mcpu`` and ``-mtune``.
237237

238238
Full discussion of these flags is available elsewhere (such as here in this `wiki`_ or in this `ARM`_ blog post) and a list of supported options should be provided by your compiler. The list for GCC_ is provided here.
@@ -257,23 +257,21 @@ MDAnalysisData_ is an additional package with datasets that can be used in examp
257257
258258
This installation does not download all the datasets; instead, the datasets are cached when they are first downloaded using a Python command.
259259

260-
261-
.. _HOLE: http://www.holeprogram.org
262260
.. _GCC: https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html
263261
.. _MDAnalysisData: https://www.mdanalysis.org/MDAnalysisData/
264262
.. _wiki: https://wiki.gentoo.org/wiki/GCC_optimization#-march
265263
.. _ARM: https://community.arm.com/arm-community-blogs/b/tools-software-ides-blog/posts/compiler-flags-across-architectures-march-mtune-and-mcpu
266-
.. _pip: https://pip.pypa.io/en/latest/index.html
264+
.. _pip: https://pip.pypa.io/en/latest/index.html
267265
.. _mamba: https://anaconda.org/conda-forge/mamba
268266
.. _conda: https://docs.conda.io/projects/conda/en/latest/
269267
.. _source: https://github.com/MDAnalysis/mdanalysis/
270268
.. _GitHub Discussions (Installation): https://github.com/MDAnalysis/mdanalysis/discussions/categories/installation
271269
.. _Microsoft Visual Studio Downloads: https://visualstudio.microsoft.com/downloads/
272270
.. _pytest: https://docs.pytest.org/en/stable/
273271
.. _numpy: https://numpy.org/
274-
.. _Github discussions: https://github.com/MDAnalysis/mdanalysis/discussions
272+
.. _Github discussions: https://github.com/MDAnalysis/mdanalysis/discussions
275273
.. _raise an issue: https://github.com/MDAnalysis/mdanalysis/issues
276-
.. _pytest-xdist: https://github.com/pytest-dev/pytest-xdist
274+
.. _pytest-xdist: https://github.com/pytest-dev/pytest-xdist
277275
.. _OpenMP: https://www.openmp.org/
278276
.. _mambaforge installation instructions: https://mamba.readthedocs.io/en/latest/installation/mamba-installation.html
279277
.. _Mambaforge: https://github.com/conda-forge/miniforge#mambaforge
@@ -287,4 +285,4 @@ This installation does not download all the datasets; instead, the datasets are
287285
.. _Branches page: https://github.com/MDAnalysis/mdanalysis/branches/all
288286
.. _CHANGELOG: https://github.com/MDAnalysis/mdanalysis/blob/develop/package/CHANGELOG
289287
.. _PyPI: https://pypi.org/project/MDAnalysis/
290-
.. _pyproject.toml file: https://github.com/MDAnalysis/mdanalysis/blob/35d9d2e3ab08e7e6741b57fe02a7215fe3b91a6c/package/pyproject.toml#L69
288+
.. _pyproject.toml file: https://github.com/MDAnalysis/mdanalysis/blob/35d9d2e3ab08e7e6741b57fe02a7215fe3b91a6c/package/pyproject.toml#L69

0 commit comments

Comments
 (0)