github pyozig/PyOZ v0.13.2
PyOZ v0.13.2

latest release: v0.13.3
3 hours ago

What's New in v0.13.2

Fixed

  • __del__ never ran for class instances returned from Zig functions, so their resources leaked. toPy created them with PyObject_New, which left the wrapper uninitialized, including the flag that gates __del__. They now go through the class's tp_new, like Cls(): the freelist is used, __dict__/__weakref__ slots are zeroed and __del__ runs.
  • Cross-building Windows wheels from Linux failed to link (undefined symbol: Py_IncRef and similar). Zig's linkSystemLibrary asks the host's pkg-config first, which answered for the Linux python3 and dropped the Windows import library. The build.zig template 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

Don't miss a new PyOZ release

NewReleases is sending notifications on new releases.