This project exposes in python the hipo classes and a few custom classes and functions from C++ via pybind11.
- macos or linux, windows is not supported
- Python >=3.9
- A compiler with C++17 support
- Ninja or Pip 10+
- meson
To install from PyPi run:
pip install hipopybindCompiling the library from source is platform dependent.
On macos run:
git clone --recurse-submodules https://github.com/mfmceneaney/hipopybind.git
cd hipopybind
pip install poetry delocate
poetry build
delocate-wheel -w repaired_dist/ dist/*.whl
pip install repaired_dist/*.whlOn linux run:
git clone --recurse-submodules https://github.com/mfmceneaney/hipopybind.git
cd hipopybind
pip install poetry auditwheel
poetry build
auditwheel repair -w repaired_dist/ dist/*.whl
pip install repaired_dist/*.whlRun the tutorials via:
python3 tutorials/write.py
python3 tutorials/read.pyIf you run into import errors because of undefined symbols when using the project along with cppyy python libraries, try importing this library first since symbol visibility set to hidden during compilation.
Contact: matthew.mceneaney@duke.edu