@@ -49,34 +49,34 @@ The Mata library further depends on the following libraries, included in the `./
4949
5050To build the library, run the following:
5151
52- ```
52+ ``` shell
5353git clone https://github.com/VeriFIT/mata
5454cd mata
5555make release
5656```
5757
5858In order to install the library, you can run
5959
60- ```
60+ ``` shell
6161sudo make install
6262```
6363
6464In order to verify the functionality of the library, you can run the test suite:
6565
66- ```
66+ ``` shell
6767make test
6868```
6969
7070You might, need to install the dependencies to measure the coverage of the tests.
7171Run the following to install the dependencies for MacOS:
7272
73- ```
73+ ``` shell
7474brew install lcov gcovr
7575```
7676
7777Run the following to install the dependencies for Ubuntu:
7878
79- ```
79+ ``` shell
8080sudo apt install -y build-essential lcov gcovr xdg-utils
8181```
8282
@@ -87,9 +87,12 @@ package on your system as follows.
8787
8888### Installation from PyPI
8989
90- To install a latest version from the PyPI repository, run
90+ To install a latest version from the PyPI repository, run:
9191
92- ```
92+ ``` shell
93+ # Using uv:
94+ uv add libmata
95+ # Or using pip:
9396pip3 install libmata
9497```
9598
@@ -98,7 +101,15 @@ pip3 install libmata
98101To build from sources first, install the necessary requirements for Python and your
99102system. We recommend using the virtual environemnt (` venv ` ) to install and use the library.
100103
104+ Using ` uv ` :
105+
106+ ``` shell
107+ uv sync --python 3.13
101108```
109+
110+ Or using ` pip ` :
111+
112+ ``` shell
102113python -m pip install --upgrade pip
103114make -C bindings/python init
104115
@@ -108,13 +119,13 @@ sudo apt -qq install -y graphviz graphviz-dev
108119
109120Now, you can install the library.
110121
111- ```
122+ ``` shell
112123make -C bindings/python install
113124```
114125
115126Finally, you can verify the binding woks as expected by running the test suite:
116127
117- ```
128+ ``` shell
118129make -C bindings/python test
119130```
120131
@@ -125,21 +136,21 @@ This directory contains examples of various usage in form of:
125136
1261371 . C/C++ example programs. By default, they are built with the library. To run for example the first example:
127138
128- ```
139+ ``` shell
129140./build/examples/example01-simple
130141```
131142
1321433 . Python example scripts. To run the scripts run the following.
133144
134- ```
135- python examples/example01-python-binding.py
145+ ``` shell
146+ python3 examples/example01-python-binding.py
136147```
137148
1381494 . Python jupyter notebooks. To run the jupyter notebook, one needs to have jupyter installed as
139150 a prerequisite. The run the jupyter notebook, that creates an instance on your local server.
140151 Navigate to generated link to see the available jupyter notebooks:
141152
142- ```
153+ ``` shell
143154pip3 install jupyter
144155jupyter notebook
145156```
0 commit comments