First try to link with bayesnet

This commit is contained in:
2023-07-07 00:23:47 +02:00
parent ea473fc604
commit 61e4c176eb
9 changed files with 5800 additions and 2 deletions

View File

@@ -5,6 +5,7 @@
"""
from setuptools import Extension, setup
from torch.utils import cpp_extension
setup(
ext_modules=[
@@ -20,5 +21,18 @@ setup(
"-std=c++17",
],
),
Extension(
name="bayesclass.cppBayesNetwork",
sources=[
"bayesclass/BayesNetwork.pyx",
"bayesclass/Network.cc",
"bayesclass/Node.cc",
],
include_dirs=cpp_extension.include_paths(),
language="c++",
extra_compile_args=[
"-std=c++17",
],
),
]
)