aboutsummaryrefslogtreecommitdiffstats
path: root/sources/api/pySoftMC/README.md
blob: 3565d46d8ec8f9ed73560a7cf9fe533b55481eb2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# pySoftMC

Python bindings for the DRAM Bender API via pybind11.

## Building with `make`

Requires the pybind11 submodule (`git clone --recursive` or `git submodule update --init --recursive`) and a system Python installation with headers at `/usr/include/python3.X`.

```
make
```

## Building with `setup.py`

A more portable alternative that works with virtual environments and pyenv:

```
python3 setup.py build_ext --inplace
```

This uses the active Python interpreter's own build machinery, so it works regardless of where Python is installed.