28 lines
867 B
Python
28 lines
867 B
Python
from pathlib import Path
|
|
from pybind11.setup_helpers import Pybind11Extension, ParallelCompile, build_ext
|
|
from setuptools import setup
|
|
|
|
|
|
__version__ = "0.0.1"
|
|
|
|
ext_modules = [
|
|
Pybind11Extension(
|
|
"cgal_bindings",
|
|
sources=sorted([str(i.absolute()) for i in (Path(".").rglob("*.cpp"))]),
|
|
define_macros=[("VERSION_INFO", __version__)],
|
|
include_dirs=["../cgal/"],
|
|
),
|
|
]
|
|
|
|
ParallelCompile("NPY_NUM_BUILD_JOBS").install()
|
|
|
|
setup(
|
|
name="cgal_bindings",
|
|
version=__version__,
|
|
author="songsenand",
|
|
author_email="songsenand@163.com",
|
|
url="https://gitea.winkinshly.site/songsenand/toydesigner-cgal",
|
|
description="python bindings for some geometry algorithms in `cgal` (for [toydesigner](https://gitea.winkinshly.site/songsenand/ToyDesigner) only)",
|
|
ext_modules=ext_modules,
|
|
cmdclass={"build_ext": build_ext},
|
|
) |