diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-06-07 23:29:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-07 23:29:30 +0300 |
commit | 40e8a67a837c4184ef02fa90eae05ef39f4b2199 (patch) | |
tree | 1d408f46ab94e1b24cecc1b86f2513ccaa5e7da9 /docs/markdown/snippets | |
parent | d53ea7da2d3f40ca2ddcce229c4db28b904832fe (diff) | |
parent | 0bc18f26a21ea0c1ad06e131e872cec2cc6022a4 (diff) | |
download | meson-40e8a67a837c4184ef02fa90eae05ef39f4b2199.zip meson-40e8a67a837c4184ef02fa90eae05ef39f4b2199.tar.gz meson-40e8a67a837c4184ef02fa90eae05ef39f4b2199.tar.bz2 |
Merge pull request #8706 from dcbaker/wip/2021-04/cython-language
1st class Cython language support
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/first-class-cython.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/markdown/snippets/first-class-cython.md b/docs/markdown/snippets/first-class-cython.md new file mode 100644 index 0000000..4812697 --- /dev/null +++ b/docs/markdown/snippets/first-class-cython.md @@ -0,0 +1,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') +dep_py3 = py.dependency() + +py.extension_module( + 'foo', + 'foo.pyx', + dependencies : dep_py, +) +``` + +And avoid the step through a generator that was previously required. |