Skip to content

Commit

Permalink
docs: mention cython_args in cython reference docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoldbaum authored and eli-schwartz committed Jul 12, 2024
1 parent f159631 commit 4172cbd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/markdown/Cython.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ py.extension_module(
)
```

You can pass arguments accepted by the `cython` CLI script with the
`cython_args` argument:

```meson
py.extension_module(
'foo-bounds'
'foo.pyx',
dependencies : dep_py,
cython_args : ['-Xboundscheck=False'],
)
```

## C++ intermediate support

*(New in 0.60.0)*
Expand Down
2 changes: 2 additions & 0 deletions docs/markdown/Python-module.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ Additionally, the following diverge from [[shared_module]]'s default behavior:
- `gnu_symbol_visibility`: if unset, it will default to `'hidden'` on versions
of Python that support this (the python headers define `PyMODINIT_FUNC` has
default visibility).

Note that Cython support uses `extension_module`, see [the reference for Cython](Cython.md).

*since 0.63.0* `extension_module` automatically adds a dependency to the library
if one is not explicitly provided. To support older versions, the user may need to
Expand Down

0 comments on commit 4172cbd

Please sign in to comment.