Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
severinsimmler committed Oct 6, 2023
1 parent 4170fc5 commit ac35dc5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13,261 deletions.
9 changes: 5 additions & 4 deletions build.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from Cython.Build import cythonize
from setuptools import Extension
from setuptools.command.build_ext import build_ext


SOURCES = [
"chaine/_core/crf.cpp",
"chaine/_core/crf.pyx",
"chaine/_core/crfsuite/lib/cqdb/src/cqdb.c",
"chaine/_core/crfsuite/lib/cqdb/src/lookup3.c",
"chaine/_core/crfsuite/lib/crf/src/crf1d_context.c",
Expand Down Expand Up @@ -57,5 +57,6 @@ def c_compile(obj, src, ext, cc_args, extra_postargs, pp_opts):
build_ext.build_extensions(self)


def build(setup_kwargs: dict):
setup_kwargs.update({"cmdclass": {"build_ext": ExtensionBuilder}, "ext_modules": [EXTENSION]})
def build(kwargs: dict):
kwargs["cmdclass"] = {"build_ext": ExtensionBuilder}
kwargs["ext_modules"] = cythonize([EXTENSION])
Loading

0 comments on commit ac35dc5

Please sign in to comment.