Updated submodule commands and linked against

hdf5_cpp library

Enabled the use of shell in 'git submodule' commands to ensure
cross-platform compatibility in the setup process. Also revised the
linked libraries for the 'limedriver.binding' extension, replacing
'hdf5' with 'hdf5_cpp' to properly utilize the C++ HDF5 library
interface. This change is expected to enhance compatibility and
performance when interacting with HDF5 files.
This commit is contained in:
Kumi 2024-02-09 14:43:35 +01:00
parent 7572583efb
commit a85671e1af
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -21,19 +21,15 @@ class BuildExtCommand(build_ext):
super().run()
def clone_limedriver(self):
subprocess.check_call(['git', 'submodule', 'init'])
subprocess.check_call(['git', 'submodule', 'update'])
def build_limedriver(self):
subprocess.check_call(['./configure'], cwd='extern/limedriver')
subprocess.check_call(['make'], cwd='extern/limedriver')
subprocess.check_call(['git', 'submodule', 'init'], shell=True)
subprocess.check_call(['git', 'submodule', 'update'], shell=True)
ext_modules = [
Extension(
'limedriver.binding',
sources=['src/limedriver/limedriver.pyx', 'extern/limedriver/src/limedriver.cpp'],
include_dirs=["extern/limedriver/src/"],
libraries=["LimeSuite", "hdf5"],
libraries=["LimeSuite", "hdf5_cpp"],
language="c++",
),
]