Source

extradoc / blog / draft / cffi-release-0.2.rst

Full commit

CFFI release 0.2

Hi everybody,

We released CFFI 0.2 (now as a full release candidate). CFFI is a way to call C from Python.

This release is only for CPython 2.6 or 2.7. PyPy support is coming in the ffi-backend branch, but not finished yet. CPython 3.x would be easy but requires the help of someone.

The package is available on bitbucket as well as documented. You can also install it straight from the python package index (pip).

  • Contains numerous small changes and support for more C-isms.
  • The biggest news is the support for installing packages that use ffi.verify() on machines without a C compiler. Arguably, this lifts the last serious restriction for people to use CFFI.
  • Partial list of smaller changes:
    • mappings between 'wchar_t' and Python unicodes
    • the introduction of ffi.NULL
    • a possibly clearer API for ffi.new(): e.g. ffi.new("int *") instead of ffi.new("int")
    • and of course a plethora of smaller bug fixes
  • CFFI uses pkg-config to install itself if available. This helps locate libffi on modern Linuxes. Mac OS/X support is available too (see the detailed installation instructions). Win32 should work out of the box. Win64 has not been really tested yet.

Cheers, Armin Rigo and Maciej Fijałkowski