-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
44 lines (40 loc) · 1.18 KB
/
setup.py
File metadata and controls
44 lines (40 loc) · 1.18 KB
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
39
40
41
42
43
44
from setuptools import setup
# Available at setup time due to pyproject.toml
from pybind11.setup_helpers import Pybind11Extension, build_ext
__version__ = "0.0.1"
ext_modules = [
Pybind11Extension(
'polyop',
[
'src/pybind_polyop.cpp',
'src/Polyhedron/Polyhedron.cpp',
'src/Polyhedron/Mesh_Operations.cpp',
'src/Polyhedron/Position_Operations.cpp',
'src/Polyhedron/Move_To.cpp',
'src/Polyhedron/automorphism.cpp',
'src/Edge.cpp',
'src/Renderer.cpp',
],
include_dirs=[
"include/",
"include/Eigen/"
],
language='c++',
extra_compile_args=['-O3']
),
]
setup(
name="polyop",
version=__version__,
author="Andreas Faust",
author_email="andreas.s.faust@gmail.com",
url="",
description="polyop",
long_description="",
ext_modules=ext_modules,
extras_require={"test": "pytest"},
# Currently, build_ext only provides an optional "highest supported C++
# level" feature, but in the future it may provide more features.
cmdclass={"build_ext": build_ext},
zip_safe=False,
)