Installation ============ pyamgx has been tested only on Linux, though it should be possible to install on Windows as well. Requirements ------------ Before installing pyamgx, you should ensure the following software packages are installed: 1. The `AMGX `_ library. The distributed (MPI) version of AMGX is not required. 2. Python 2 >= 2.7 or Python 3 >= 3.5. If you are using Python 2 < 2.7.9, you will need to `install pip `_. 3. Python libraries `SciPy `_ and `Cython `_. It is highly recommended to `use pip `_ to install these packages: .. code-block:: bash $ pip install scipy cython If you are using the `Anaconda `_ distribution, these packages should already be installed. Building and installing pyamgx ------------------------------ Get the source code ^^^^^^^^^^^^^^^^^^^ Download the pyamgx source either by visiting https://github.com/shwina/pyamgx and clicking "Clone or Download", or if you have Git, running the following command: .. code-block:: bash $ git clone https://github.com/shwina/pyamgx Set environment variables ^^^^^^^^^^^^^^^^^^^^^^^^^ Before installing pyamgx, you should export the following environment variables: 1. ``AMGX_DIR``: Path to the AMGX project root directory 2. ``AMGX_BUILD_DIR``: If AMGX was built in a directory other than ``$AMGX_DIR/build``, set ``AMGX_BUILD_DIR`` to that directory. Otherwise, you don't need to set this variable On bash, the commands to set the above environment variables are: .. code-block:: bash $ export AMGX_DIR=/path/to/.../AMGX $ export AMGX_BUILD_DIR=/path/to/.../build Install pyamgx ^^^^^^^^^^^^^^ .. code-block:: bash $ cd pyamgx $ pip install .