diff options
| author | Haocong Luo <richardluo723@gmail.com> | 2026-06-01 20:04:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-01 20:04:48 +0200 |
| commit | ee802e6c310a2248c74d341d53d57d5948df6468 (patch) | |
| tree | c4cc1654e50cee95e6dbc842c32be3fd374e3f73 /sources/api/pySoftMC/README.md | |
| parent | 81860f141ca3103663be80279b3dff7f34cd8fc2 (diff) | |
| parent | a22b6dbc4d93a568d608995e02f5e84d34461a1c (diff) | |
| download | dram-bender-ee802e6c310a2248c74d341d53d57d5948df6468.tar.gz | |
Merge pull request #13 from gussmith23/gus/fix-pybind-gitlink
Misc. fixes to pybind11 bindings
Diffstat (limited to 'sources/api/pySoftMC/README.md')
| -rw-r--r-- | sources/api/pySoftMC/README.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sources/api/pySoftMC/README.md b/sources/api/pySoftMC/README.md new file mode 100644 index 0000000..f59c30f --- /dev/null +++ b/sources/api/pySoftMC/README.md @@ -0,0 +1,24 @@ +# 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. +Requires pybind11 installed in the active Python environment (`pip install pybind11`); +does not require the pybind11 git submodule. + +``` +pip install pybind11 +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. |
