We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81ff96d commit 5b43ad8Copy full SHA for 5b43ad8
archive/c/cython/hello_world.pyx
@@ -0,0 +1,9 @@
1
+from libc.stdio cimport printf
2
+
3
4
+cdef main():
5
+ printf(b"%s\n", b"Hello, World!")
6
7
8
+if __name__ == "__main__":
9
+ main()
archive/c/cython/testinfo.yml
@@ -0,0 +1,11 @@
+folder:
+ extension: ".pyx"
+ naming: "underscore"
+container:
+ image: "rzuckerm/cython"
+ tag: "3.1.6-1"
+ build: |
+ sh -c "cython -3 --embed {{ source.name }}{{ source.extension }} -o {{ source.name }}.c && \
10
+ gcc -o {{ source.name }} $(python3-config --cflags) {{ source.name }}.c $(python3-config --ldflags) -lpython3.12 -fPIC"
11
+ cmd: "./{{ source.name }}"
0 commit comments