docs: mention cython_args in cython reference docs

pull/13421/head
Nathan Goldbaum 7 months ago committed by Eli Schwartz
parent f15963194f
commit 4172cbd0fb
  1. 12
      docs/markdown/Cython.md
  2. 2
      docs/markdown/Python-module.md

@ -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)*

@ -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

Loading…
Cancel
Save