-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
38 lines (31 loc) · 1003 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env python
from setuptools import setup
from pybind11.setup_helpers import Pybind11Extension, build_ext
with open("README.md") as f:
long_description = f.read()
with open("VERSION") as f:
version = f.read().strip()
ext_modules = [
# the eigen3 include directories below may be required for the compiler to
# find Eigen
Pybind11Extension(
"CppADCodeGenEigenPy",
["src/bindings.cpp"],
include_dirs=["include", "/usr/include/eigen3", "/usr/local/include/eigen3"],
),
]
setup(
name="CppADCodeGenEigenPy",
version=version,
description="CppADCodeGen with an Eigen interface and Python bindings.",
long_description=long_description,
long_description_content_type="text/markdown",
author="Adam Heins",
author_email="[email protected]",
install_requires=["numpy"],
extras_require={"test": "pytest"},
ext_modules=ext_modules,
cmdclass={"build_ext": build_ext},
license="MIT",
zip_safe=False,
)