This is tested on Ubuntu with python3.8
installed.
# build the extension
$ zig build
# run zig tests
$ zig build test
# run python tests
$ pytest
logical division of the code
src/sum.zig
src/ffi.zig
and translated headers are in src/python3.8.zig
src/pysum.zig
src/callpy.zig
python3.8.zig
is generated by running
$ zig translate-c /usr/include/python3.8/Python.h -I/usr/include/python3.8 -I /usr/include -I /usr/include/x86_64-linux-gnu/ -D__sched_priority=0 -DNDEBUG > src/python3.8.zig
About
sample python extension in zig
Topics Resources Stars Watchers ForksYou can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4