Skip to content

Commit

Permalink
remove gxx as only avialbe on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
stoiveroberts committed May 31, 2023
1 parent 640d68a commit f168288
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 19 deletions.
55 changes: 37 additions & 18 deletions docs/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,33 +69,36 @@ use, for instance, `wget` to download the latest version via:
sudo apt-get install wget
Now to install `Miniforge`.
Install `Miniforge`
~~~~~~~~~~~~~~~~~~~

.. note::
Run the installation script:

During the `Miniforge` installation you will be asked to accept the licence
(essentially apache 2.0) and whether to run `conda init` to change your `.bashrc` file to allow activation of the
base conda environment when opening a new terminal.

If you choose otherwise you will need to
manually change your `PATH` environment variable:
.. code-block:: bash
.. code-block:: bash
bash Miniforge3.sh
export PATH=$PATH:~/miniforge3/bin
and then activate `miniconda` by running

.. code-block:: bash
source miniconda3/bin/activate
Run the installation script:
.. note::

.. code-block:: bash
During the `Miniforge` installation you will be asked to accept the licence
(essentially apache 2.0) and whether to run `conda init` to change your `.bashrc` file to allow activation of the
base conda environment when opening a new terminal.

If you choose not to run `conda init` you will need to run the
following command every time to activate `miniforge`

bash Miniforge3.sh
.. code-block:: bash
It is recommended to close and reopen your terminal for the `miniconda` installation to take effect.
source miniconda3/bin/activate
Once `Miniforge` is installed we can now create an environment to run ANUGA.
Once `Miniforge` is installed and activated we can now create an environment to run ANUGA.


Install ANUGA using MiniForge (Ubuntu)
Expand Down Expand Up @@ -139,12 +142,12 @@ You can test your installation via:
.. _Install ANUGA from source using MiniForge:

Install ANUGA from source (e.g. as a developer) using MiniForge (Ubuntu)
--------------------------------------------------
------------------------------------------------------------------------

If you want to use the very latest version of ANUGA (or develop ANUGA code) then you need
to download the `anuga_core` repository from `github` and then `pip` install ANUGA from the source.

First install the latest version of `Miniforge` as described in section `Install MiniForge3`_.
First install the latest version of `Miniforge` as described in section `Install MiniForge`_.

Now we need to download the ANUGA source code from `github`

Expand All @@ -169,6 +172,22 @@ and finally install ANUGA. Do a standard `pip` install
pip install .
.. note::

You may need to install a compiler to complete the `pip install`.
You can use the system compilers or use `conda` to install compilers as such (for Linux and OSX):

.. code-block:: bash
conda install compilers
or for win32:

.. code-block:: bash
conda install m2w64-gcc libpython
Finally it is sensible to test the installation.

.. code-block:: bash
Expand Down Expand Up @@ -324,7 +343,7 @@ You can test your installation via:

.. code-block:: bash
python -c "import anuga; anuga.test()"
pytest --pyargs anuga
Installing GDAL on Ubuntu using apt and pip
Expand Down
1 change: 0 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ channels:
- conda-forge
dependencies:
- python=3.9
- gxx
- openpyxl
- pybind11
- cython
Expand Down

0 comments on commit f168288

Please sign in to comment.