c 0.5.0 Release: Compile extension modules on Import

James Pye james.pye at gmail.com
Sun Aug 5 22:50:54 CEST 2012


"c" is an alternative to distutils' Extension() support or Makefile compilation of simple extension modules.

It provides a meta_path hook that performs compilation and linkage of C, C++, or Objective-C source files upon import.

Any Python implementation providing a functional "sysconfig" module should work.

NOTE: Naturally, win32/win64 is not likely functional. Sorry.

Currently, there is no way to build out compilation and link parameters, but future version are planned to include a cute solution to the problem. (Likely, embedding pkgconfig and -framework references in the C source requiring them)

http://pypi.python.org/pypi/c


More information about the Python-announce-list mailing list