aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-05-19 14:43:09 -0700
committerDylan Baker <dylan@pnwbakers.com>2021-06-07 09:25:32 -0700
commit0cb05004ca9cb6e17cd64b6d0b4ef8e759ed4136 (patch)
treea61b95b2c295a5126d51656b13d8897b67cf0093 /docs/markdown/snippets
parenta2fc2e216581309c8e3a9e4fb60fa30c6921d5f8 (diff)
downloadmeson-0cb05004ca9cb6e17cd64b6d0b4ef8e759ed4136.zip
meson-0cb05004ca9cb6e17cd64b6d0b4ef8e759ed4136.tar.gz
meson-0cb05004ca9cb6e17cd64b6d0b4ef8e759ed4136.tar.bz2
docs: Add cython docs
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/first-class-cython.md18
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.