What's New in v0.13.2
Fixed
__del__never ran for class instances returned from Zig functions, so their resources leaked.toPycreated them withPyObject_New, which left the wrapper uninitialized, including the flag that gates__del__. They now go through the class'stp_new, likeCls(): the freelist is used,__dict__/__weakref__slots are zeroed and__del__runs.- Cross-building Windows wheels from Linux failed to link (
undefined symbol: Py_IncRefand similar). Zig'slinkSystemLibraryasks the host's pkg-config first, which answered for the Linuxpython3and dropped the Windows import library. Thebuild.zigtemplate now passes.use_pkg_config = .no; existing projects should make the same one-line change.
Installation
Download the binary for your platform and add it to your PATH:
| Platform | Binary |
|---|---|
| Linux x86_64 | pyoz-x86_64-linux
|
| Linux ARM64 | pyoz-aarch64-linux
|
| macOS x86_64 | pyoz-x86_64-macos
|
| macOS ARM64 (Apple Silicon) | pyoz-aarch64-macos
|
| Windows x86_64 | pyoz-x86_64-windows.exe
|
| Windows ARM64 | pyoz-aarch64-windows.exe
|
Source
Download PyOZ-0.13.2.tar.gz for the source code.
Quick Start
pyoz init mymodule
cd mymodule
pyoz build
pip install dist/*.whl