2024-02-07 17:18:44 +00:00
|
|
|
from setuptools import setup, Extension
|
|
|
|
from setuptools.command.build_ext import build_ext
|
|
|
|
|
|
|
|
import subprocess
|
|
|
|
import os
|
|
|
|
|
|
|
|
from Cython.Build import cythonize
|
|
|
|
|
2024-02-10 19:00:27 +00:00
|
|
|
os.environ['CXX'] = 'h5c++ -shlib'
|
2024-02-08 08:52:51 +00:00
|
|
|
|
2024-02-07 17:18:44 +00:00
|
|
|
ext_modules = [
|
|
|
|
Extension(
|
2024-02-08 08:52:51 +00:00
|
|
|
'limedriver.binding',
|
2024-02-08 08:07:09 +00:00
|
|
|
sources=['src/limedriver/limedriver.pyx', 'extern/limedriver/src/limedriver.cpp'],
|
2024-02-09 14:12:02 +00:00
|
|
|
include_dirs=["extern/limedriver/src/", "/usr/include/hdf5/serial/"], # TODO: This is REALLY ugly.
|
2024-02-10 17:02:07 +00:00
|
|
|
libraries=["LimeSuite", "hdf5_cpp", "hdf5"],
|
2024-02-08 08:07:09 +00:00
|
|
|
language="c++",
|
2024-02-07 17:18:44 +00:00
|
|
|
),
|
|
|
|
]
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name='limedriver',
|
|
|
|
ext_modules=cythonize(ext_modules),
|
|
|
|
)
|