Skip to content

Commit

Permalink
Added Cython modules
Browse files Browse the repository at this point in the history
  • Loading branch information
champsblanc committed Apr 13, 2023
1 parent c7f1537 commit ca4eb62
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools>=61.0"]
requires = ["setuptools>=61.0", "numpy", "Cython"]
build-backend = "setuptools.build_meta"

[project]
Expand Down
15 changes: 15 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from setuptools import setup, Extension
import numpy

setup_args = dict(
ext_modules = [
Extension(
"cut_finder",
["mercury/explainability/explainers/_tree_splitters/cut_finder.pyx"],
extra_compile_args=['-fopenmp'],
extra_link_args=['-fopenmp'],
include_dirs=[numpy.get_include()]
)
]
)
setup(**setup_args)

0 comments on commit ca4eb62

Please sign in to comment.