Add library_dirs to extension build configuration

Enhanced the build process by specifying the library directories in
setup.py. This ensures the linker can locate all relevant libraries for
the 'limedriver.binding' extension, preventing potential build issues on
systems where libraries are not in the default search path.
This commit is contained in:
Kumi 2024-02-09 15:30:29 +01:00
parent 507c7538c6
commit 75b7340354
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -29,6 +29,7 @@ ext_modules = [
'limedriver.binding',
sources=['src/limedriver/limedriver.pyx', 'extern/limedriver/src/limedriver.cpp'],
include_dirs=["extern/limedriver/src/", "/usr/include/hdf5/serial/"], # TODO: This is REALLY ugly.
library_dirs=["/usr/lib/"],
libraries=["LimeSuite"],
language="c++",
),