diff options
| author | Gus Smith <gus@normalcomputing.ai> | 2026-05-29 10:38:26 -0700 |
|---|---|---|
| committer | Gus Smith <gus@normalcomputing.ai> | 2026-05-29 10:38:26 -0700 |
| commit | db0dc94d8a3161333b21636aacdfb9ce9284a16b (patch) | |
| tree | b8193c11d6d1cf0280e4fad32d90395e943c469a | |
| parent | a0539f79a130abdd1ebc4d59e083aa569061d22a (diff) | |
| download | dram-bender-db0dc94d8a3161333b21636aacdfb9ce9284a16b.tar.gz | |
Don't use pybind in submod
| -rw-r--r-- | sources/api/pySoftMC/README.md | 5 | ||||
| -rw-r--r-- | sources/api/pySoftMC/setup.py | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/sources/api/pySoftMC/README.md b/sources/api/pySoftMC/README.md index 3565d46..f59c30f 100644 --- a/sources/api/pySoftMC/README.md +++ b/sources/api/pySoftMC/README.md @@ -12,9 +12,12 @@ make ## Building with `setup.py` -A more portable alternative that works with virtual environments and pyenv: +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 ``` diff --git a/sources/api/pySoftMC/setup.py b/sources/api/pySoftMC/setup.py index c353396..b962937 100644 --- a/sources/api/pySoftMC/setup.py +++ b/sources/api/pySoftMC/setup.py @@ -1,9 +1,9 @@ from setuptools import setup, Extension -import os +import os, pybind11 here = os.path.dirname(os.path.abspath(__file__)) api_dir = os.path.join(here, "..") -pybind11_include = os.path.join(here, "../ext/pybind11/include") +pybind11_include = pybind11.get_include() ext = Extension( "pySoftMC", |
