Skip to content

Commit

Permalink
Doc: Update python_installation.rst (AMICI-dev#2212)
Browse files Browse the repository at this point in the history
* Update python_installation.rst

On Python 3.11 and with openblas 0.3.24-2, amici installer is unable to find "cblas.h". This is fixed by exporting the openblas path to BLAS_CFLAGS

* Apply suggestions from code review

* Update python_installation.rst

exporting BLAS_LIBS  was also needed to get the amici package to be importable, in addition to BLAS_CFLAGS

---------

Co-authored-by: Daniel Weindl <dweindl@users.noreply.github.com>
  • Loading branch information
willov and dweindl authored Dec 1, 2023
1 parent fbb2936 commit c174c40
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion documentation/python_installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ Install the AMICI dependencies via ``pacman``
sudo pacman -S python swig openblas gcc hdf5 boost-libs
Export the bash variables ``BLAS_CFLAGS`` and ``BLAS_LIBS`` to point to where BLAS was installed, e.g.:

.. code-block:: bash
export BLAS_CFLAGS="-I/usr/include/openblas/"
export BLAS_LIBS="-lopenblas"
Install AMICI:

.. code-block:: bash
Expand All @@ -99,7 +106,14 @@ Alternatively:
sudo pacman -Su python swig openblas gcc hdf5 boost-libs
3. Install AMICI:
3. Export the bash variables ``BLAS_CFLAGS`` and ``BLAS_LIBS`` to point to where BLAS was installed, e.g.:

.. code-block:: bash
export BLAS_CFLAGS="-I/usr/include/openblas/"
export BLAS_LIBS="-lopenblas"
4. Install AMICI:

.. code-block:: bash
Expand Down

0 comments on commit c174c40

Please sign in to comment.