Skip to content

Commit cd614be

Browse files
committed
PyTrx pip package included in environment set up file
1 parent 11a3248 commit cd614be

4 files changed

Lines changed: 10 additions & 7 deletions

File tree

dist/pytrx-1.2.3-py3-none-any.whl

0 Bytes
Binary file not shown.

dist/pytrx-1.2.3.tar.gz

1 Byte
Binary file not shown.

docs/Installation.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,24 @@ Be warned that there are difficulties with the GDAL package on pip, meaning that
3232
pip install pytrx
3333
3434
35-
If you still run into problems then we suggest creating a new conda environment from the .yml environment file <https://github.com/PennyHow/PyTrx/blob/master/environment.yml>`_ provided in the PyTrx repository, as described `here <https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html>`_. Then the PyTrx pip package can be installed afterwards in this fresh environment.
35+
If you still run into problems then we suggest creating a new conda environment from the .yml environment file <https://github.com/PennyHow/PyTrx/blob/master/environment.yml>`_ provided in the PyTrx repository, as described `here <https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html>`_. This includes a fresh install of PyTrx.
3636

3737

3838
.. code-block:: bash
3939
4040
conda env create --file environment.yml
4141
42-
pip install pytrx
43-
4442
45-
To check that PyTrx is working, open a Python console or IDE such as Spyder, and try to import PyTrx
43+
To check that PyTrx is working, open a Python console or IDE such as Spyder, and try to import PyTrx, PyTrx's help guide, and one of PyTrx's modules as a test.
4644

4745
.. code-block:: python
4846
4947
import PyTrx
5048
5149
help(PyTrx)
5250
51+
from PyTrx import Area
52+
5353
If PyTrx is working correctly, the help statement should print PyTrx's metadata, including PyTrx's license, a brief description of the toolset, and its structure. If this does not work and throws up an error, it is likely that the package dependencies are invalid so reconfigure them and then try again.
5454

5555

environment.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: pytrx
1+
name: pytrx3
22
channels:
33
- defaults
44
dependencies:
@@ -11,7 +11,7 @@ dependencies:
1111
- astroid=2.6.6=py37h06a4308_0
1212
- async_generator=1.10=py37h28b3542_0
1313
- atomicwrites=1.4.0=py_0
14-
- attrs=21.2.0=pyhd3eb1b0_0
14+
- attrs=21.4.0=pyhd3eb1b0_0
1515
- autopep8=1.6.0=pyhd3eb1b0_0
1616
- babel=2.9.1=pyhd3eb1b0_0
1717
- backcall=0.2.0=pyhd3eb1b0_0
@@ -242,4 +242,7 @@ dependencies:
242242
- zipp=3.7.0=pyhd3eb1b0_0
243243
- zlib=1.2.11=h7f8727e_4
244244
- zstd=1.4.9=haebb681_0
245-
prefix: /home/pho/anaconda3/envs/pytrx
245+
- pip:
246+
- glob2==0.7
247+
- pytrx==1.2.3
248+
prefix: /home/pho/anaconda3/envs/pytrx3

0 commit comments

Comments
 (0)