@@ -31,18 +31,18 @@ To add "conda-forge" to the conda channels, run the following in a terminal. ::
31
31
conda config --add channels conda-forge
32
32
33
33
We want to install our packages in a suitable conda environment.
34
- The following creates and activates a new environment named ``utils `` ::
34
+ The following creates and activates a new environment named ``diffpy- utils `` ::
35
35
36
- conda create -n utils python=3
37
- conda activate utils
36
+ conda create -n diffpy- utils python=3
37
+ conda activate diffpy- utils
38
38
39
39
Then, to fully install ``diffpy.utils `` in our active environment, run ::
40
40
41
41
conda install diffpy.utils
42
42
43
43
Another option is to use ``pip `` to download and install the latest release from
44
44
`Python Package Index <https://pypi.python.org >`_.
45
- To install using ``pip `` into your ``utils `` environment, we will also have to install dependencies ::
45
+ To install using ``pip `` into your ``diffpy- utils `` environment, we will also have to install dependencies ::
46
46
47
47
pip install numpy
48
48
pip install diffpy.utils
@@ -53,15 +53,13 @@ Both of the following lines will install this package. ::
53
53
conda install wxPython
54
54
pip install wxPython
55
55
56
- If you prefer to install from sources, after installing the dependencies, obtain the source archive and run ::
56
+ If you prefer to install from sources, after installing the dependencies, obtain the source archive from
57
+ `GitHub<https://github.com/diffpy/diffpy.utils/>`_. Once installed, ``cd `` into your ``diffpy.utils `` directory
58
+ and run the following ::
57
59
58
- python setup.py install
60
+ pip install -e .
59
61
60
- You may need to use ``sudo `` with system Python as it attempts to install to standard system directories.
61
- If sudo is not available, check the usage info from ``python setup.py install --help `` for options to
62
- install to user-writable locations.
63
-
64
- To check the installation integrity if the following passes all checks, you are good! ::
62
+ To check the installation integrity, if the following passes all checks, you are good! ::
65
63
66
64
pip install pytest
67
65
python -m diffpy.utils.tests.run
0 commit comments