Skip to content

Commit

Permalink
reinstate runtest.py for testing of anuga
Browse files Browse the repository at this point in the history
  • Loading branch information
stoiveroberts committed May 19, 2022
1 parent 408bdd7 commit 100134e
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 4 deletions.
50 changes: 48 additions & 2 deletions INSTALL.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Now Download, install and test `anuga`:
git clone https://github.com/anuga-community/anuga_core.git
cd anuga_core
pip install -e .
pytest
python runtests.py
Remember, to use ANUGA you will have to activate the `anuga_env` environment
via the command:
Expand All @@ -85,6 +85,50 @@ via the command:
You might even like to set this up in your `.bashrc` file.
Installing on Ubuntu using apt and pip
--------------------------------------
ANUGA can be installed using `pip`, but a complication arrise when installing
the `gdal` package.
First set up a python virtual environment and activate via:
.. code-block:: bash
python3 -m venv anuga_env
course anuga_env/bin/activate
Now we first need to install the `gdal` python package. First install the
gdal library, via:
.. code-block:: bash
sudo apt-get install -y gdal-bin libgdal-dev
We need to ascertain the version of `gdal` installed using the following command:
.. code-block:: bash
ogrinfo --version
THe version of `gdal` to install via `pip` should match the version of the library.
For instance on Ubuntu 20.04 the previous command produces:
.. code-block:: bash
GDAL 3.0.4, released 2020/01/28
So in this case we install the `gdal` python package as follows
.. code-block:: bash
pip install gdal==3.0.4
Now we complete the installation of `anuga` simply by:
.. code-block:: bash
pip install anuga
Installing on Ubuntu using apt and pip
---------------------------------------
Expand Down Expand Up @@ -112,7 +156,7 @@ You should now install anuga:
And finally check the installation by running the unit tests via:
.. code-block:: bash
pytest
python runtests.py
Windows 10 Install using 'Ubuntu on Windows'
Expand Down Expand Up @@ -169,4 +213,6 @@ And finally test the installation:
.. code-block:: bash
python runtests.py
6 changes: 4 additions & 2 deletions docs/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Now Download, install and test `anuga`:
git clone https://github.com/anuga-community/anuga_core.git
cd anuga_core
pip install -e .
pytest
python runtests.py
Remember, to use ANUGA you will have to activate the `anuga_env` environment
via the command:
Expand Down Expand Up @@ -156,7 +156,7 @@ You should now install anuga:
And finally check the installation by running the unit tests via:
.. code-block:: bash
pytest
python runtests.py
Windows 10 Install using 'Ubuntu on Windows'
Expand Down Expand Up @@ -213,4 +213,6 @@ And finally test the installation:
.. code-block:: bash
python runtests.py

0 comments on commit 100134e

Please sign in to comment.