aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/first-class-cython.md
blob: 54f9367a001a0cf2676d52fe5a83c584552f6443 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
## Cython as as first class language

Meson now supports Cython as a first class language. This means you can write:

```meson
project('my project', 'cython')

py = import('python').find_installation()
dep_py = py.dependency()

py.extension_module(
    'foo',
    'foo.pyx',
    dependencies : dep_py,
)
```

And avoid the step through a generator that was previously required.