gtsam/cython/gtsam_unstable/setup.py.in

28 lines
817 B
Python
Raw Normal View History

2017-03-19 03:52:08 +08:00
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
import eigency
import sys
# so that it can find the wrapped gtsam package
sys.path.append("..")
2017-03-19 03:52:08 +08:00
libc_flag = []
if sys.platform == "darwin":
libc_flag = ["-stdlib=libc++"]
2017-03-19 03:52:08 +08:00
setup(
ext_modules=cythonize(Extension(
"gtsam_unstable",
sources=["gtsam_unstable.pyx"],
include_dirs = ["${CMAKE_SOURCE_DIR}", "${CMAKE_BINARY_DIR}",
"${CMAKE_SOURCE_DIR}/gtsam/3rdparty/Eigen"
] + eigency.get_includes(include_eigen=False),
libraries=['gtsam', 'gtsam_unstable'],
library_dirs=["${GTSAM_DIR}/../../"],
language="c++",
extra_compile_args=["-std=c++11"] + libc_flag,
extra_link_args=libc_flag)),
2017-03-19 03:52:08 +08:00
)