Skip to content

Commit

Permalink
Include docstrings in cython code. Fixes API docs. (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
matham authored Oct 5, 2022
1 parent 5b7377e commit 698bad5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
*(glob.glob(os.path.join(MARISA_SOURCE_DIR, path)) for path in MARISA_FILES)
)

COMPILER_DIRECTIVES = {
'embedsignature': True,
}

DESCRIPTION = __doc__
# TODO: Switch back to builtin `open(FILE, encoding="utf-8")` when dropping Python 2.7 support
with open("README.rst", encoding="utf-8") as f1, open(
Expand Down Expand Up @@ -98,6 +102,7 @@
"src/trie.cpp",
],
include_dirs=[MARISA_INCLUDE_DIR],
compiler_directives=COMPILER_DIRECTIVES,
)
],
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
Expand Down

0 comments on commit 698bad5

Please sign in to comment.