mirror of
https://github.com/nqrduck/LimeDriverBindings.git
synced 2024-05-22 00:54:10 +00:00
Updated CXX env var and removed redundant
library_dirs in setup Enhanced the 'CXX' environment variable assignment in setup.py to include the '-shlib' flag for shared library support. Also, streamlined the Extension configuration by eliminating the now unnecessary specification of default library directories, simplifying the build process. Refactors setup configuration for efficiency and compatibility with shared libraries.
This commit is contained in:
parent
5f9f62df76
commit
1e8ff8684d
3
setup.py
3
setup.py
|
@ -6,14 +6,13 @@ import os
|
|||
|
||||
from Cython.Build import cythonize
|
||||
|
||||
os.environ['CXX'] = 'h5c++'
|
||||
os.environ['CXX'] = 'h5c++ -shlib'
|
||||
|
||||
ext_modules = [
|
||||
Extension(
|
||||
'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", "hdf5_cpp", "hdf5"],
|
||||
language="c++",
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue