Skip to content

Commit eb3fa1f

Browse files
committed
contributing: add build libsemigroups into conda env
1 parent 53915e6 commit eb3fa1f

1 file changed

Lines changed: 24 additions & 2 deletions

File tree

CONTRIBUTING.rst

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,36 @@ with micromamba.
3232

3333
To build libsemigroups (with the above environment active):
3434

35+
First, clone and prepare the libsemigroups repository:
36+
3537
.. code-block:: console
3638
3739
git clone https://github.com/libsemigroups/libsemigroups
3840
cd libsemigroups
39-
./autogen.sh && ./configure --disable-hpcombi && make -j8
41+
./autogen.sh
42+
43+
Then choose one of the following installation methods:
44+
45+
**Option 1: System-wide installation**
46+
47+
For a system-wide installation (requires sudo):
48+
49+
.. code-block:: console
50+
51+
./configure --disable-hpcombi
52+
make -j8
4053
sudo make install
4154
42-
where ``-j8`` instructs the compiler to use 8 threads.
55+
**Option 2: Install into conda/mamba environment**
56+
57+
.. code-block:: console
58+
59+
./configure --prefix=$CONDA_PREFIX --disable-hpcombi
60+
make -j8
61+
make install
62+
63+
In both cases, ``-j8`` instructs the compiler to use 8 threads (adjust based on your
64+
system).
4365

4466
To build the Python bindings (with CCache) inside the ``libsemigroups_pybind11``
4567
directory:

0 commit comments

Comments
 (0)