mirror of
https://github.com/nqrduck/LimeDriverBindings.git
synced 2024-06-27 16:09:08 +00:00
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:
parent
7572583efb
commit
a85671e1af
10
setup.py
10
setup.py
|
@ -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++",
|
||||
),
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue