aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/first-class-cython.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/markdown/snippets/first-class-cython.md')
-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.