TREX-CoE / trexio

TREX I/O library
https://trex-coe.github.io/trexio/
BSD 3-Clause "New" or "Revised" License
49 stars 14 forks source link

Text fallback when building python API #126

Closed q-posev closed 1 year ago

q-posev commented 1 year ago
q-posev commented 1 year ago

Took advantage and fixed a few bugs, cleaned a little bit and improved the build script. Now it copies and uses config.h to build Python API when using make python-install. When building from Python dist tarball (pip install .) - it will try to detect HDF5 using env variables, so they need to be either set in advance or pkg-config will try to find HDF5 and then if both fail - use text.

I also refactored the Python tests, now they can run using pytest parametrization for both HDF5 and TEXT back ends.