Skip to content

Commit 363e04a

Browse files
committed
nexus dependencies
1 parent 80a9b57 commit 363e04a

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

nexus/requirements.txt

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# While Nexus does not have strict version requirements, this requirements file
2+
# corresponds to versions that have been tested and are known to work.
3+
# Last updated: 2024/12/16
4+
5+
numpy==2.2.0
6+
scipy==1.14.1
7+
matplotlib==3.10.0
8+
h5py==3.12.1
9+
pydot==3.0.3
10+
spglib==2.4.0 # Some functionality is broken in 2.5.0
11+
pycifrw==4.4.6
12+
cif2cell==2.1.0
13+
seekpath==2.1.0

nexus/sphinx_docs/installation.rst

+11-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ working python environment exists.
1212
Setting environment variables
1313
-----------------------------
1414

15-
To make your Python installation (must be Python 2.x as 3.x is not supported)
15+
To make your Python installation (must be Python 3.x, 2.x is no longer supported)
1616
aware of Nexus, simply set the PYTHONPATH environment variable. For example, in bash this would look like:
1717

1818
.. code-block:: rest
@@ -76,6 +76,14 @@ listed with ``apt`` above on Debian systems), try ‘pip3‘:
7676
pip3 install --user cif2cell
7777
pip3 install --user seekpath
7878

79+
While Nexus does not have strict version requirements, most recent
80+
dependency versions that have been tested and are known to work can be
81+
found at ``qmcpack/nexus/requirements.txt``.
82+
These specific library versions can be installed using the following command:
83+
::
84+
85+
pip3 install --user -r requirements.txt
86+
7987
The purpose of each library is described below:
8088

8189
**numpy** Needed throughout Nexus for array computation. Nexus will not
@@ -192,7 +200,7 @@ in your ``PATH``. Installation is successful if all tests pass:
192200
Only portions of Nexus consistent with your Python installed Python
193201
libraries will be tested.
194202

195-
To run the tests with ``pytest`` (``pip install user pytest``), enter
203+
To run the tests with ``pytest`` (``pip install --user pytest``), enter
196204
the unit test directory and simply invoke the ``pytest`` command:
197205

198206
::
@@ -268,7 +276,7 @@ Assessing Test Coverage (Developer Topic)
268276
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
269277

270278
Code coverage can be assessed by using the ``coverage`` tool
271-
(``pip install user coverage``):
279+
(``pip install --user coverage``):
272280

273281
::
274282

0 commit comments

Comments
 (0)